Lib Fusion |
Fusiondeclare global namespace object for Fusion library to use Summary
Fusion. ConstantApplication scope constants Summary
initialize
Initialize the Fusion application. @param {Object} options Optional paramters that can be passed to initialize are
loadQueuedScripts
load any scripts that have been queued for loading. As the scripts load, they are removed. When all queued scripts have been loaded, the load state is advanced. If any of the loaded scripts require other scripts (for inheritance), they will be queued and loaded before the load state is advanced. scriptLoaded
a script has loaded. It is removed from the various tracking arrays. When all requested scripts have been loaded, we check to see if any scripts where required by the ones just loaded. If yes, then we loadQueuedScripts again, otherwise we advance the load state. Parameter: url {String} the url of the script that was loaded. ajaxRequest
convenience function to issue an XmlHttpRequest to the server relative to the Fusion installation. Parameter: {String} scriptURL the URL (relative to Fusion) to request Parameter: {Object} options optional parameters to send with the request, passed directly to Prototype’s Ajax.Request function convertXMLOptionally convert XML to JSON using a server-side script for requests that aren’t available in JSON. Parameter: {XmlHttpRequest} r the XmlHttpRequest object Parameter: json boolean indicator if the content is JSON or not. Parameter: callback callback method to be executed on success and will be passed a parsed json object getWidgetById
return a reference to a widget by the id of the DOM Element that it was created in. Parameter: {String} id the DOM id to get the widget for Returns: {Fusion.Widget} the widget or null |
Initialize the Fusion application.
initialize : function( options )
set the current initialization state of the application.
setLoadState: function( state )
load any scripts that have been queued for loading.
loadQueuedScripts: function()
Insert a new script into the loading queue.
queueScript : function( url )
Called when a script fails to load for some reason.
scriptFailed: function( url )
a script has loaded.
scriptLoaded: function( url )
check if scripts have loaded.
checkLoadingScripts: function()
asynchronously load the application definition through the broker and config manager.
loadConfig : function()
the server has returned the application configuration file that contains enough information to bootstrap the application.
getConfigCB : function( r )
the server has returned the application configuration file that contains enough information to bootstrap the application.
serverSet : function()
the application failed to load the application configuration file.
serverFailed: function( r )
convenience function to issue an XmlHttpRequest to the server relative to the Fusion installation.
ajaxRequest: function( scriptURL, options )
trap exceptions produced in handling an ajax response.
ajaxException: function( r, e )
return a map widget with the given name
getMapByName : function( name )
return a map widget that is associated with the given dom element by id.
getMapById : function( id )
return the map widget at the given index
getMapByIndice : function( indice )
return a reference to a widget by the id of the DOM Element that it was created in.
getWidgetById: function( id )
returns the applicaiton’s absolute URL minus the filename.html part
getApplicationURL: function()
Return the path to this script.
_getScriptLocation: function ()