Forum Moderators: open
Pretty new to playing around with Ajax, and I'm trying to make a newsletter box.
So, when someone puts in their email address the script will the the submission in the background, and refresh the box to say its been successful or not, without having to load another page.
I basically have it working, but when it does the submission I get this error:
"Permission denied to call method XMLHttpRequest.open"
From what I've read it seems like its a sexurity measure. I use aweber for my newsletter, so I guess where it's having this problem is that the email address gets submitted to a third party site, and that's not allowed.
Is there a way around this? I was thinking if ajax passes the form variables to maybe a php script or something which then contacts the newsletter server.
Or, maybe another approach entirely?
Thanks for any input!
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
} catch (e) {
alert("Permission UniversalBrowserRead denied.");
}
See if that helps :)