|
Community Map Builder 27 Apr 2008 | |||||||
PREV NEXT | FRAMES NO FRAMES |
No overview generated for 'Loading.js'
Class Summary | |
Loading |
/* License: LGPL as per: http://www.gnu.org/copyleft/lesser.html $Id: Loading.js 3702 2007-12-09 23:24:11Z ahocevar $ */ // Ensure this object's dependancies are loaded. mapbuilder.loadScript(baseDir+"/widget/WidgetBase.js"); /** * This widget can be used to insert a message while the Mapbuilder * javascript is loading. The message is removed once Mapbuilder * javascript is loaded. In the main HTML file, insert something like:<br/> * <div id="loading"><p>Loading Program</p></div>. * @constructor * @base WidgetBase * @author Cameron Shorter * @param widgetNode The widget's XML object node from the configuration document. * @param model The model object that this widget belongs to. */ function Loading(widgetNode, model) { WidgetBase.apply(this,new Array(widgetNode, model)); /** * Remove the contents of the HTML tag for this widget. * @param objRef Reference to this object. */ this.paint= function(objRef) { var node = document.getElementById(objRef.htmlTagId); if (node) { while (node.childNodes.length>0) { node.removeChild(node.childNodes[0]); } } } this.model.addListener("refresh",this.paint, this); }
|
Community Map Builder 27 Apr 2008 | |||||||
PREV NEXT | FRAMES NO FRAMES |