Hybrid View

  1. #1
    Ext User
    Join Date
    Oct 2010
    Posts
    19
    Vote Rating
    0
    busybee is on a distinguished road

      0  

    Default 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

    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
    1
    plalx has a spectacular aura about plalx has a spectacular aura about

      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
    busybee is on a distinguished road

      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,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      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: 4
    Last Post: 30 Jun 2011, 11:00 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

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar