1. #1
    Ext User
    Join Date
    Jan 2011
    Posts
    1
    Vote Rating
    0
    raphdom is on a distinguished road

      0  

    Default Store using ScriptTagProxy not read json data

    Store using ScriptTagProxy not read json data


    Hello,

    I have this code:

    Code:
    var maillingListStore = new Ext.data.Store({
            proxy: new Ext.data.ScriptTagProxy({
                method: 'GET',
                url: 'serverURL'
            }),
            reader: new Ext.data.JsonReader(),
            autoLoad: true
    });
    My server return this json data:

    Code:
    {"success": true,"resreq-224551":{"resourceStore":{"metaData":{"totalProperty":"results","root":"rows","versionProperty":"version","id":"id","fields":[{"name":"distributionListName","type":"string"},{"name":"id","type":"float"}]},"results":489,"version":1,"rows":[{"distributionListName":"Name 1","id":501294162},{"distributionListName":"Name 2","id":501485869},{"distributionListName":"Name 3","id":501294165}...
    but JSonReader not read a data using metadata.

    Somebody already passed for the same problem?

    Thanks....

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    78
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    your server needs to wrap that in a callback call.

Similar Threads

  1. Ext.data.ScriptTagProxy: Cannot read property 'length' of undefined
    By gregorypierce in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 12 Dec 2010, 4:31 PM
  2. Using ScriptTagProxy to pull JSON data from another domain
    By locutusUT in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 17 Jun 2010, 3:29 PM
  3. store read data from Json Data
    By szxiaoyin in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 10 May 2010, 3:44 AM
  4. Ext.data.ScriptTagProxy and Domino JSON
    By kerocs in forum Ext.nd for Notes/Domino
    Replies: 0
    Last Post: 8 Sep 2009, 2:20 PM
  5. xmlReader and ScriptTagProxy can not read data from url
    By aggarat in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 22 Jul 2007, 7:56 AM

Thread Participants: 1

Tags for this Thread