NAVIGATION
This shows you the differences between two versions of the page.
|
english:technics:internal-function-call [2010/06/25 10:45] Knut Heermann (flip-flop) |
english:technics:internal-function-call [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 137: | Line 137: | ||
| **initJSPlugin('SimpleTabs');** the right JS framework calls. | **initJSPlugin('SimpleTabs');** the right JS framework calls. | ||
| + | |||
| + | Alternatively, in a template: | ||
| + | <code php> | ||
| + | [PHp]initJSPlugin('SimpleTabs');[/PHP] | ||
| + | </code> | ||
| + | or | ||
| + | <code php> | ||
| + | <!-- JS: SimpleTabs --> | ||
| + | <!-- JS: http://digitarald.de/project/simple-tabs/1-0/source/SimpleTabs.js --> | ||
| + | </code> | ||
| + | |||
| + | |||
| + | <note important> | ||
| + | Since version r410 the call of external scripts like \\ ##%%<!-- JS: http://XYZ.js -->%%## for security is no longer possible. \\ | ||
| + | |||
| + | \\ | ||
| + | Alternatively, this method can be selected:\\ ##%%[PHP]$GLOBALS['block']['custom_htmlhead']['XYZ'] = getJavaScriptSourceLink(html_specialchars('http://XYZ.js'));[/PHP] %%## | ||
| + | |||
| + | </note> | ||
| * **External scripts** are now started from the appropriate plugin directory. | * **External scripts** are now started from the appropriate plugin directory. | ||