Question:
why not working on Firefox?
ajithnongmaithem
2009-03-23 05:12:28 UTC
i use the below code it works well in IE but not in fireFox. can anyone help me::
//checking email is on database or not
if (document.student_1.email.value!="")
{

var objdoc;
var ab1=new Array();
var ab2=new Array();
var httpob;
httpob=null;
if (window.XMLHttpRequest)
{// code for IE7, Firefox, Opera, etc.
httpob=new xmlhttprequest();
}
else if (window.ActiveXObject)
{
try {
httpob = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
try{
httpob = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){}
}
}

httpob.open("POST","checkemail.asp?email=" + email ,false);
httpob.send();
ab1=httpob.responseText;
ab2=ab1.split("^");
document.student_1.emailval.value=ab2[0];
if(ab2[1]=='found')
{ document.student_1.email.value=''; }
}
}
Three answers:
anonymous
2009-03-23 05:23:39 UTC
Try the code at http://developer.apple.com/internet/webcontent/xmlhttpreq.html



And separate the request from the response - you can't do them in one routine.
Ams
2009-03-24 08:00:59 UTC
it is not at all a piece of virus or sumthing like dat...

it happens..

just ignore it..
MANAS1177
2009-03-23 12:17:37 UTC
Its just a Piece of VIRUS!!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...