-
13 Feb 2012 12:27 PM #1
Ajax proxy troubleshooting help needed.
Ajax proxy troubleshooting help needed.
I've got a strange problem where an ajax proxy request succeeds and the data from the server shows up in the operation, but not the store and the store records array is empty.
How do I go about troubleshooting this?
I tried stack traces, looking at the Sencha Touch code, using console.log dumps of the model, proxy and store and can't find the problem.
Thanks
Here's the straightforward store.load():Code:records: [ ] Operation: _action: "read" ... _response: Object getAllResponseHeaders: function () { getResponseHeader: function (header) { request: Object requestId: NaN responseText: "{"metaData": {"success":true,"total":1,"rootProperty":"item"},"item": ... responseXML: null status: 200 statusText: "OK"
Code:store.load({ callback: function(records, operation, success) { // the operation object contains all of the details of the load operation console.log(records, operation); }, scope: this });
-
13 Feb 2012 1:10 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
What does your reader look like?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
13 Feb 2012 2:00 PM #3


Reply With Quote