28 Mar 2012 12:32 PM #1
Unanswered: How can I get back raw JSON from external server
Because it is an external server I think that the only option I have is to use Ext.util.JSONP.request but the site that I am using doesn't seem to support a callback mechanism and just returns a pure JSON which then bombs out because it isn't wrapped.
Is there any other way around this?
It is so annoying that the call is successful and I can see the data coming back but it bombs out with an 'Unexpected token :' because it wants it wrapped.
29 Mar 2012 5:27 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The server needs to support JSONP
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
29 Mar 2012 10:40 AM #3
That is a very accurate answer but unfortunately does not help my problem or address the main question which was 'Is there any other way to do this?'
25 Apr 2012 2:46 AM #4
you can enclose your json in [ JSON] so that it is in Json P format.....It may resolve your problem i have a asame issue but fixed by it.