1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    16
    Vote Rating
    0
    ITS Telco is on a distinguished road

      0  

    Default JSONP - Object in a store

    JSONP - Object in a store


    Hello,

    i have some trouble with a JSONP-Object.
    After a httpRequest I have a JSONP-Object and it looks as I want it.
    I want to fill with this object a list. Before i could do this I must store it for using:

    Code:
                        sias.themes.ThemeStore = new Ext.data.Store({
                        model: 'User',
                        proxy: {
                            type: 'ajax',
                            url : sias.data.resultThemesjson,
                            reader: {
                                type: 'json',
                                root: 'aces'
                            }
                        },
                        autoLoad: true
                        });
    If I investigate the store object it is always empty.
    The system throw the error Uncaught TypeError: Object #<Object> has no method 'indexOf'
    (maybe: it is empty).
    What did I make wrong ?
    Thank you in advanced.

    best regards
    Thomas

  2. #2
    Sencha User
    Join Date
    Jun 2011
    Posts
    16
    Vote Rating
    0
    ITS Telco is on a distinguished road

      0  

    Default No help ?

    No help ?


    No help ?

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    16
    Vote Rating
    0
    ITS Telco is on a distinguished road

      0  

    Default JSONP - Object in a store

    JSONP - Object in a store


    It is solved. It was a "hasMany" problem.

    http://www.sencha.com/forum/showthre...hlight=hasMany

    Thx.