tags:

views:

127

answers:

2

I want to call AJAX Request from one subdomain to other.

Say I want to request http://subdomain2.site.com/ajax/handler.ashx from a ASPX page on other subdomain http://subdomain1.site.com/Default.aspx

Any IDEA how to do this?

A: 

According to https://developer.mozilla.org/en/Same%5Forigin%5Fpolicy%5Ffor%5FJavaScript, you can set document.domain to a suffix of the domain, so

 document.domain='example.com'

However, I have not tested this.

Kinopiko
A: 

have you taken a look at JSONP?

seengee