Ext js show loadMask before document ready
Posted: Wed Dec 23, 2009 3:31 am
Hi,
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 :
Here I am loading gif and showing it by myMask.Show()
Than in next file which is test.js i am trying to hide gif after document ready :
Unfortunately, it doesn't works at all, first off all the loading image is showing after document is ready and than it doesn't hide ....so it's crap
please help...
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...