JS

[[JS:source]]

Includes JavaScript content and functions to node from any available external source which may be either local file or remote absolute URL. This feature alone will save you a lot of typing if you are accustomed to coding with html script tags for all your external inclusions.

Examples:

[[JS:menu.js]]
[[JS:http://yoursite.com/promotions/campaign3/ad4/api/jsadserver]]
 [[INITIALIZE:domain|www.yoursite.com]]
 [[INITIALIZE:path|promotions/campaign3/ad4]]
 [[INITIALIZE:script|api/jsadserver]]
 [[INITIALIZE:source|http://$domain/$path/$script/]]
 [[JS:[[=source]]]

for asynchronous:

[[JS:menu.js" async]]
[[JS:xhtml_menu.js" async="async]]

Leave a Reply