Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cross-Domain Issues

Status
Not open for further replies.

jammer1221

Programmer
Jul 30, 2003
352
US
Hi All,

I'm using an XMLHTTPRequest to get the size of a file. I don't have any control whether or not the file is on my site. Is there any way (native to ajax) to check whether or not I will run into cross-domain problems?

Currently I am just using indexOf("domainhere.com") to see if my domain is in the file passed to my function.

Thanks,
Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top