Is it possible to make a cross-domain AJAX call on Mobile Browsers?
I have a site which makes SOAP requests to a separate domain using YUI's cross-domain AJAX transport. This is working wonderfully on my site, but unfortunately since mobile browsers don't support flash, I can't get it to work.
Does anyone know of a way to ma开发者_如何转开发ke cross-domain AJAX posts on mobile browsers?
Thanks!
If you're using a javascript library such as jQuery JSONP is able to make GET requests to different domains.
I've also heard that mobile Safari isn't too strict on making cross-domain ajax calls anyway, though I haven't tried it myself.
Good luck!
For me SOAP worked for Safari but did not work in Chrome (Android). AJAX did work for both.
精彩评论