Unanswered: Download JSON Data
I'm not sure whether this is possible with Sencha Touch, but I can't figure it out from the documentation.
Imagine a simple webservice at url service.com/service
The answer is
My application is not running on this domain, therefore I can't use Ajax.
Using Ext.data.JsonP.request(...) I have the problem that there are parameters added ( the callback etc. ) that the server doesn't support.
Two ways to tackle your your issue:-
1) Change your server code to wrap JSON in a callback. Check how JSONP can be implemented in your server side code on internet.
2) Apply CORS (Cross origin resource sharing) settings on your server, and use your normal ajax APIsto download your JSON
thanks for the answer, but I don't have influence on the webservice. So there is no option for downloading this json document?
Tags for this Thread