FusionThe main global object for Fusion applications. 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 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 Fusion. Lib. EventMgran internal class for managing generic events. Classes that wish to publish and trigger events that other objects can listen for need to inherit from Fusion.Lib.EventMgr. To publish an event, call registerEventID with some unique numeric or string value. Other objects can then call registerForEvent with the eventID and a function to call when the event is triggered. To trigger an event, call triggerEvent with the eventID and any additional arguments that should be passed to listeners. |
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.
serverSet : function( r )
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()
destroy: function()