开发者

Is it possible to make a cross-domain AJAX call on Mobile Browsers?

开发者 https://www.devze.com 2023-01-09 06:15 出处:网络
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 fl

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消