Thursday, June 14, 2012

Javascript-- Ajax cross domain for Jquery

Sometime we want to trigger a Ajax call cross other web domain,

For example, we are in www.abc.com , and you want to call a Ajax to www.123.com, you will



It will work in Firefox and Chrome, but sometimes in IE, especially for IE7 and IE6, it will not trigger this Ajax call because your call is from abc.com to 123.com.


So the solutions as fellow:





Now you can access 123.com method from abc.com.



No comments:

Post a Comment