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,246
    Vote Rating
    87
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      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

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."