| 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. |