Posts tagged ‘XMLHttpRequest’

The XMLHttpRequest object should be very famous in the world of developers who are developing ajax applications, which is at the core of of today’s most exciting web applications. Client browsers who are hosting those web applications have a cross domain scripting restriction, which prevents the browser from communicating with any domain other than the domain that serves the browser page.

 Most of the web applications will consume the resources only within one domain, but what if it comes to the situation that the application need to consume the resources from multiple domains, such as calling a 3rd party web service to retrieve some data? Given the restrictions imposed by web browsers on network connections across domains, the solution for the above problem will be really tricky. So let me explain in detail the four ways of getting around the cross browser issues:

Click to read more »