Results 1 to 4 of 4

Thread: Uncaught TypeError: Object #<an Object> has no method 'addEvents'

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    19
    Vote Rating
    0
      0  

    Default 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

    Code:
    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
    
        });
    Could someone give directions of where i am going wrong

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    480
    Vote Rating
    3
      0  

    Default

    Your are missing the new keyword. I didin't see it either at first hehe!

    Code:
     
    var store = new Ext.data.Store({...});

  3. #3
    Ext User
    Join Date
    Oct 2010
    Posts
    19
    Vote Rating
    0
      0  

    Default

    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    
        });

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    119
      0  

    Default

    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

  1. Replies: 5
    Last Post: 29 Sep 2014, 1:02 AM
  2. Uncaught TypeError: Cannot call method 'indexOf' of undefined
    By cwebb in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 9 Sep 2010, 6:59 PM
  3. Replies: 1
    Last Post: 18 Jun 2010, 12:54 AM
  4. Replies: 1
    Last Post: 6 Feb 2008, 5:09 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •