1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default Reader.read is not a function

    Reader.read is not a function


    I do not know how i get or how to get rid of the above error.

    My little store is defined as such:


    this.store = new Ext.data.JsonStore({

    proxy: {
    type: 'ajax',
    url: this.chartUrl, //...
    reader: {
    type: 'json',
    root: 'data'
    }
    },

    //alternatively, a Ext.data.Model name can be given (see Ext.data.Store for an example)
    //fields: ['name', 'url', { name: 'size', type: 'float' }, { name: 'date1', type: 'date'}],

    dataModel: this.dataModel,
    listeners: {

    // load: { fn: this.handleStoreLoad, scope: this }
    }
    });

    It shows that the request is completed successfully. However the reader stumbled somewhere.

    By the way, how i can catch ajax error and data reader error seperately and provide meanful error message?

    thanks

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    89
    Vote Rating
    0
    xun is an unknown quantity at this point

      0  

    Default


    ah, found it.

    should be
    model: this.dataModel
    not
    dataModel: this.dataModel

    However, the question remains:

    how i can catch ajax error and data reader error seperately and provide meanful error message?

    thanks

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