javascript - Extjs 5 - LoadMask on the entire page not working -



javascript - Extjs 5 - LoadMask on the entire page not working -

in extjs 4.2, using load mask whole page

in mutual utility class :

loadmask: null, showloading : function() { if (!this.loadmask) { this.loadmask = new ext.loadmask(ext.getbody(), { msg: "loading..." }); } this.loadmask.show(); }, clearloading:function() { this.loadmask.hide(); },

i calling method in pages during loading/saving (waiting server side response ), in extjs 5.0, not working, getting next error message :

uncaught typeerror: cannot phone call method 'mask' of undefined all-classes.js:1 ext.define.show all-classes.js:1 ext.define.loadingprocess all-classes.js:1 ext.define.listeners.beforeload all-classes.js:1 ext.define.dofire all-classes.js:1 ext.define.fire all-classes.js:1 ext.define.dodispatchevent all-classes.js:1 ext.define.dispatchevent all-classes.js:1 ext.define.dofireevent all-classes.js:1 a.dofireevent all-classes.js:1 ext.define.fireevent all-classes.js:1 ext.define.load

got !!! changed in extjs 5.0, ext.getbody() returns ext.dom.element , element utilize mask() , unmask(), should

//mask ext.getbody().mask("loading..."); //unmask ext.getbody().unmask();

javascript extjs extjs5

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -