Possible Duplicate:
Cross-domain XHR/AJAX : a possible workaround?
I tried to do a xmlHttpRequest from within my Javascript to a Restful Web service which is running on an another server. I got an JS error specifying
"XMLHttpRequest cannot load 'URL'.Origin 'localhost' is not allowed by Access-Control-Allow-Origin.
After googling i got to know that i cannot make an XmlhttpRequest across domains.
I would like to know what is the best way to implement a cross domain web service call from my Javascript.
Hi i am using this with my applications
now for the server side function
it should return jsonp also, like this