1. #1
    Sencha User
    Join Date
    Jun 2011
    Location
    United States
    Posts
    2
    Vote Rating
    0
    cgutjahr is on a distinguished road

      0  

    Default Answered: "TypeError: 'undefined' is not an object (evaluating 'records.length')" - Error

    Answered: "TypeError: 'undefined' is not an object (evaluating 'records.length')" - Error


    Hello Everyone..

    Hope someone can help me. I am getting the following javascript error

    TypeError: 'undefined' is not an object (evaluating 'records.length')

    Here is the relevant code

    Ext.regModel('Contact', {
    fields: ['firstName', 'lastName','status','creationDate']
    });

    var store = new Ext.data.Store({
    model: 'Contact',
    //sorters: 'creationDate',

    proxy: {
    type: 'ajax',
    url : 'userList.json',
    reader: {
    type: 'json',
    root: 'users'
    }
    },

    autoLoad: true

    });

    Here is my JSON String.

    {
    "users": [
    {
    "firstName": "Joe",
    "lastName": "Blow",
    "status": "Action Required",
    "creationDate": "10/10/1974"
    },
    {
    "firstName": "Bob",
    "lastName": "Smithr",
    "status": "Action Requsired",
    "creationDate": "10/11/1974"
    }
    ]
    }

    Any ideas?


  2. Hi.
    Please be sure that you are browsing your application from "http://localhost/..." or a live webserver.
    There's nothing wrong with your code.

    Hope this helps.

  3. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Answers
    148
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hi.
    Please be sure that you are browsing your application from "http://localhost/..." or a live webserver.
    There's nothing wrong with your code.

    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  4. #3
    Sencha User
    Join Date
    Feb 2012
    Location
    Delhi, India
    Posts
    94
    Answers
    2
    Vote Rating
    0
    Abhishek Srivastava is on a distinguished road

      0  

    Default


    I am also getting the same error...


    How does it matter if we are hosting our app from localhost or live web server.

    I m hosting frm local host

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..." hd porno faketaxi