Hi!
I am trying to get AJAX working on multiple browsers and am having a
problem with Firefox.
I have the following code:
function handleState3(){
switch(http.rea dyState) {
case 0: // Uninitialized
break;
case 1: // Loading
break;
case 2: // Loaded
break;
case 3: // Interactive
break;
case 4: // Finished
var response = http.responseTe xt;
if (!response) {
} else {
alert('No response received from Notify Server.');
}
break;
default:
alert("ERROR: unknown HTTP state: "+http.readySta te);
break;
}
}
AND:
function global_subscrib e(email) {
if (email!="" && email) {
http.open("post ", "notify.php ");
http.setRequest Header("Content-Type",
"applicatio n/x-www-form-urlencoded");
http.onreadysta techange = handleState3;
http.send("type =global&email=" +email);
}
}
You can test this script on www.dwergpapegaai.com by clicking on the
Email Icon next to the search box in the green area just below the
message edit area.
It seems that responseText is not working in Firefox!
Please Help!
Best Regards,
Snt