A set of tools for the TDI library.
Requires TDI global object.
Methods
-
<static> getScript(url, options)
-
Loads an external javascript file. It uses a 'script tag' technique instead of AJAX, so the loaded javascript file is debuggable in tools like Firebug.
Parameters:
Name Type Description url
String URL of the external javascript file
options
Object Additional options
complete <Function>
It is called when the javascript is fully loaded.id <String>
An optional id attribute of the script tag.nonce <String>
An optional nonce attribute of the script tag.
-
<static> getStyle(url, options)
-
Loads an external CSS file. It uses AJAX to load the CSS data to provide the complete event.
Parameters:
Name Type Description url
String URL of the external CSS file
options
Object Additional options
complete <Function>
It is called when the CSS file is fully loaded.id <String>
An optional id attribute of the style tag.