I want to use Ajax to send a request to a remote php file and I got XmlHttpRequest object successfully,
but got a exception at the following line:
xmlHttpRequest.open('POST', "http://www.XYZ.com/php/my.php", true);
In FireFox, the exception is: Access to restricted URI denied code: "1012"
I also tried IE and Safari and got a similar error at the same line of the code.
I know I can call remote
Java object (
servlet) in the same way, why not php?