I'm trying to use a dojox.widget.Standby. I want the standby to display whilst some other code is executing, and then hide once complete. However my standby only seems to display when I call standby.hide(). Code below:
standby = new dojox.widget.Standby({
target : "map-id"
});
<div id="map-id" class="centerPanel"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region: 'center', style: 'width: 1300px;'">
<span id="toolbar"></span>
<div id="co-ords" style="position:absolute; bottom:0px; z-index:1000; font-size:8; font-weight:bold; background-color: #FFFFFF"></div>
</div>
Anyone know what's going on? I'm also struggling to catch the onShow event using dojo.connect...
dojo.connect(standby, "onShow", function(){
console.log("standby onShow");
})
Thanks!
Update - calling standby.hide() shows my widget in FireFox but not Chrome