Namespace nnjl.LoaderService
nnjl.LoaderService
Defined in: nnjl.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Load external files into document
Based on Scriptaculous load libraries script
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
nnjl.LoaderService.REQUIRED_PROTOTYPE
Required prototype version
|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
nnjl.LoaderService.css(cssPath)
Load a css file into document head
|
| <static> |
nnjl.LoaderService.js(jsPath, callback)
Load a js file into document head
|
| <static> |
nnjl.LoaderService.load(minified, externalPath, libraries)
Load js libreries into document head
|
Namespace Detail
nnjl.LoaderService
Load external files into document
Based on Scriptaculous load libraries script
- Requires:
- nnjl.PlatformService
Field Detail
<static>
{string}
nnjl.LoaderService.REQUIRED_PROTOTYPE
Required prototype version
Method Detail
<static>
nnjl.LoaderService.css(cssPath)
Load a css file into document head
- Parameters:
- {string} cssPath
- Css file full path
<static>
nnjl.LoaderService.js(jsPath, callback)
Load a js file into document head
- Parameters:
- {string} jsPath
- JS file full path
- {function} callback
- Callback function called when the script is loaded by the browser
<static>
nnjl.LoaderService.load(minified, externalPath, libraries)
Load js libreries into document head
- Parameters:
- {boolean} minified
- use the minified version or not
- {string} externalPath
- External path/folder where the libraries are
- {string} libraries
- Libraries to be loaded separated by COMA ","