Forum /
Sencha Touch 2.x Forums /
Sencha Touch 2.x: Q&A /
Answered: How to Get json values from cross domain in sencha touch2
Answered: How to Get json values from cross domain in sencha touch2
HI
Can anyone tell how to Get json values from cross domain in sencha touch2
TIA
Best Answer Posted by
ajithct
Got solution by converting json file to jsonp format like adding Ext.data.JsonP.callback({....});
Thanks
You can use either "CORS" if you wish to use AJAX APIs or JSONP APIs directly.
Please provide more information on your issue.
... and if the app is being deployed natively, you don't need to worry about this at all, ajax requests will work cross domain fine.
Got solution by converting json file to jsonp format like adding Ext.data.JsonP.callback({....});
Thanks
Cross domain in sencha touch2
Cross domain in sencha touch2
var store = Ext . create ( ' Ext.data.Store ' , { model : 'User' , proxy : { type : 'jsonp' , url : 'http://domainB.com/users' , callbackKey : 'theCallbackFunction' } }); store . load (); we have to try it
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us