jammer1221
Programmer
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
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