-
21 Jan 2011 3:34 AM #1
Store using ScriptTagProxy not read json data
Store using ScriptTagProxy not read json data
Hello,
I have this code:
My server return this json data:Code:var maillingListStore = new Ext.data.Store({ proxy: new Ext.data.ScriptTagProxy({ method: 'GET', url: 'serverURL' }), reader: new Ext.data.JsonReader(), autoLoad: true });
but JSonReader not read a data using metadata.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}...
Somebody already passed for the same problem?
Thanks....
-
21 Jan 2011 5:12 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 33
your server needs to wrap that in a callback call.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
Similar Threads
-
Ext.data.ScriptTagProxy: Cannot read property 'length' of undefined
By gregorypierce in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 12 Dec 2010, 4:31 PM -
Using ScriptTagProxy to pull JSON data from another domain
By locutusUT in forum Ext GWT: DiscussionReplies: 1Last Post: 17 Jun 2010, 3:29 PM -
store read data from Json Data
By szxiaoyin in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 10 May 2010, 3:44 AM -
Ext.data.ScriptTagProxy and Domino JSON
By kerocs in forum Ext.nd for Notes/DominoReplies: 0Last Post: 8 Sep 2009, 2:20 PM -
xmlReader and ScriptTagProxy can not read data from url
By aggarat in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 22 Jul 2007, 7:56 AM


Reply With Quote