Hybrid View
-
5 Oct 2010 10:51 AM #1
Uncaught TypeError: Object #<an Object> has no method 'addEvents'
Uncaught TypeError: Object #<an Object> has no method 'addEvents'
Hello,
I get an error: Uncaught TypeError: Object #<an Object> has no method 'addEvents' - ext-all-debug-21347
which is from the Java script form the below code
Could someone give directions of where i am going wrongCode:var store = Ext.data.Store({ // Load data at once autoLoad: true, reader:reader, // Override default http proxy settings proxy: new Ext.data.HttpProxy({ // Call web service method using GET syntax url: "Test.asmx/GetData" })// End of prxy });
-
5 Oct 2010 11:11 AM #2
Your are missing the new keyword. I didin't see it either at first hehe!
Code:var store = new Ext.data.Store({...});
-
5 Oct 2010 11:23 AM #3
Thank you scarsick.
Now I get another error
Uncaught TypeError: Cannot read property 'dom' of null
Code:var grid = new Ext.grid.GridPanel('mygrid', { ds: store, cm: colModel });
-
6 Oct 2010 2:34 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
That is Ext 1.x code! That won't work in Ext 3.
ps. You probably don't have an element with id="mygrid" or you are not creating your grid from Ext.onReady().
Similar Threads
-
Uncaught TypeError: Cannot call method 'split' of undefined (ext-touch-debug.js:9555
By fermina in forum Sencha Touch 1.x: DiscussionReplies: 4Last Post: 30 Jun 2011, 11:00 AM -
Uncaught TypeError: Cannot call method 'indexOf' of undefined
By cwebb in forum Sencha Touch 1.x: DiscussionReplies: 11Last Post: 9 Sep 2010, 6:59 PM -
Newbie.. how to solve "Uncaught TypeError: Object #(an Object) has no method ''
By ericw in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 18 Jun 2010, 12:54 AM -
[2.0.1] Observable.addEvents does not add properties to the events object
By Animal in forum Ext 2.x: BugsReplies: 1Last Post: 6 Feb 2008, 5:09 AM


Reply With Quote