How to run external Javascript file in Joomla 3.2.1 - Joomla! Forum - community, help and support


dear all,

i'd know how can insert javascript web site created joomla 3.2.1, there numerous examples on net , on [youtube] this, oudated. tried follow instructions on link http://www.jenkramer.org/blog/custom-javascript-in-joomla , believe 2nd article suit needs best ( 2. indirectly embed in article custom html module via {loadposition} ).

i create custom html module (js_script), there not discernible denotes javascript turned on or off in module tab menu. @ editor, java scripting getting filtered if set no filtering superuser in global configuration.

i embed following scripting , html source in existing web site shown in on line editorhttp://codepen.io/osgjs/pen/uxthp

regards,

- create 1 file javascript
- include in template or module want.

$doc = jfactory::getdocument();
$doc->addscript("http://www.example.com/js/myscript.js");





Comments

Popular posts from this blog

Assign one article to one user - Joomla! Forum - community, help and support

Catalogue Size

The "inactive" category