Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
1 + 4 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: adding javascript for a module
by wjue on 2003/12/15 11:53:27

a more efficient way will be to place your js code in $xoops_module_header SMARTY variable, it is then charged only when the module is loaded.


wjue
Re: adding javascript for a module
by hsalazar on 2003/12/15 3:26:26

phatjew:

I don't know if anyone frowns upon things that work (lol), but what I've seen is that modules employing its own javascript put in in the module's home directory.

Cheers.
adding javascript for a module
by phatjew on 2003/11/25 20:10:57

I know that this topic's title seems to imply it is in the wrong forum, but you'll see why it is here.


I have a bunch of javascript in a module that I am writing, and I found the most convenient place to put it is in xoops.js, since that is loaded with every page already. That makes it a core hack.

Is this frowned upon? If so, where is the standard place to put a module's javascript?

Thanks for any advice.

Who's Online

194 user(s) are online (140 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits