PDA

View Full Version : Ajax.Request or JSONP?



AndreaCammarata
21 Oct 2010, 12:09 AM
Hi guys, I have an issue retriving data from the server and I just need a confirmation, so here is my simple question:
"Which method I have to use if I have to retrive data from the same domain but from different remote port instead 80?" I mean, does a call to a different port of the same url is considered as a cross domain call, so I have to use JSONP or an AjaxRequest is enought for my purpose?

Thank you guys!

evant
21 Oct 2010, 1:04 AM
https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript

AndreaCammarata
21 Oct 2010, 1:36 AM
Thanks, so I have to use JSONP as I'm already doing.