Class TJSLoader
The TJSLoader object is used as a way to dynamically load javascript files.
Defined in: <class.jsloader.js>.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Construct a new TJSLoader object, however ALWAYS use the global JSLoader object instance.
|
| Field Attributes | Field Name and Description |
|---|---|
|
If TRUE, a random string (&buster=
|
| Method Attributes | Method Name and Description |
|---|---|
|
LoadJS(url, tag)
Load new javascript file into DOM.
|
Class Detail
TJSLoader()
Construct a new TJSLoader object, however ALWAYS use the global JSLoader object instance. No need to construct your own instances.
Field Detail
{bool}
useCacheBuster
If TRUE, a random string (&buster=) will be appended to back of URL specified in #LoadJS method to avoid browser cache issues.
- Default Value:
- true
Method Detail
LoadJS(url, tag)
Load new javascript file into DOM.
- Parameters:
- {string} url
- URL to javascript file to dynamically include.
- {string} tag
- [Optional] If tag is specified, then only one instance of that tag can exist. If a previous javascript file was loaded with the same tag name, it will be removed from the DOM before loading the new javascript file.