I think it should belong to this forum.
I want to use Ajax to call the remote php file like following:
// I got XmlHttpRequest object successfully, but got an exception at the following line:
xmlHttpRequest.open('POST', "http://www.XYZ.com/php/my.php", true);
In FireFox, the exception was:
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 a
Java object (
servlet) in the same way, why not php?