Hi,
I'm trying to use the xmlHttpReq object to contact a URL on my server.
But I'm getting a JS "Permission denied" error at the indicated line.
What does it mean and how can I get around it?
function signUp(signUpEl t) {
if (!ValidEmail(si gnUpElt.value)) {
alert("Please enter a valid email address.");
return;
} // if
var xmlHttpReq = false;
var self = this;
// Mozilla/Safari
if (window.XMLHttp Request) {
self.xmlHttpReq = new XMLHttpRequest( );
}
// IE
else if (window.ActiveX Object) {
self.xmlHttpReq = new ActiveXObject(" Microsoft.XMLHT TP");
}
var strURL =
"http://mydomain.myhost .com/add_email_respo nse.php?EmailP= " +
escape(signUpEl t.value);
self.xmlHttpReq .open('GET', strURL, true); // throws
"Permission denied" JS error.
Thanks for any help, - Dave