PDA

View Full Version : Getting an oe is not defined when trying to display a load mask



srp
23 Nov 2010, 11:55 AM
I'm still in the learning phase of Ext JS and right now I'm trying to get basic load mask working.

I have the following in my code:


var mask = Ext.LoadMask(Ext.getBody(), { msg: "Please wait..." });
mask.show();
store.load()
mask.hide();

but everytime I try to run this code I always get the same error

oe is undefined
[Break on this error] me.addListener(e, ...oe.scope || o.scope, oe.fn ? oe : o); ext-all-debug.js (line 2137)

I'm using Ext JS 3.2.

I also tried just the following code just to test the most basic functionality and I always get the same error. All my other ExtJS code is working fine, and I'm not getting any errors outside of this one. Any ideas as to what might be causing this?


var mask = Ext.LoadMask(Ext.getBody(), { msg: "Please wait..." });
mask.show();
mask.hide();

-Stephen

aconran
23 Nov 2010, 11:56 AM
You forgot new in front of constructing your Ext.LoadMask.

srp
23 Nov 2010, 11:57 AM
Thank you, I feel like a complete *****. I realized that I forgot the new about 60 seconds after I posted this.

*Sigh*