I have some problem showing and hiding loadMask (loading gif object in Ext js framework)
I am using zend framework and I have defined view .phtml which looks like this :
Code: Select all
<?php echo $this->headScript()->setFile($this->baseUrl().'/scripts/ext/adapter/ext/ext-base.js') ?><?php echo $this->headScript()->setFile($this->baseUrl().'/scripts/ext/ext-all-debug.js') ?><script>var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});myMask.show();</script><?php echo $this->headScript()->setFile($this->baseUrl().'/scripts/test.js') ?> Than in next file which is test.js i am trying to hide gif after document ready :
Code: Select all
Ext.onReady(function(){ vp.render(); myMask.hide();}); please help...