1
msch-prv
Running custom javascript
  • 2006/5/31 17:07

  • msch-prv

  • Just popping in

  • Posts: 9

  • Since: 2006/5/22


Simple question but I am really stuck!

I would like to create a simple DHTML script. The script should open a pop-up window when clicking upon an icon and retrieve data. The parent script works flawlessly.

This is my first attempt at customizing Xoops. After searching through the forums for some jscript snippets, I created a module and associated php files. But parts of the puzzle are missing.

Currently, I have a module (..\modules\mod1) with a subdir (code1) to hold the js code and the icons. The php file is the standard module with some html code sandwiched between the php head and footer blocks.

Problems:
1. XOOPS only shows the input field, not the icon.
2. The url 'Click here!' shows up, but the jscript code does not run.

Is there somewhere an easy-to-follow example that explains the basics of integrating jscript into Xoops?

Thanks for any links and/or advice.

Mark

Procedure details (for the interested!):
a. Created a private module (../modules/mod1) with an index file (../modules/mod1/index.php). Added the following html code:
...

Input date:





Click here!


....

b. Declared the jscript file in 'theme.html' as follows:


Login

Who's Online

493 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 493


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits