Ie8 supports ajax. in ie8, if the verification code is entered correctly or incorrectly. Other browsers (Firefox, Aoyou) are good, and colleagues can run IE8. I can't clear all my ie8 cookies or plug-ins. Excuse me, what's the problem? This is the ajax code: varauth & quot; & nbsp; functioncheckForm () {varcheckdoc ie8 supports ajax.
In ie8, an error is returned when you enter the verification code in the correct or incorrect format. Other browsers (Firefox, Aoyou) are good, and colleagues can run IE8. I can't clear all my ie8 cookies or plug-ins. Excuse me, what's the problem?
This is the ajax code:
Var auth = "";
Function checkForm (){
Var check = document. getElementById ("check"). value; // Obtain the verification code entered by the user.
$. Ajax ({
Type: "POST ",
Cache: false,
DataType: "TEXT ",
Async: false,
Url: "{$ baseurl}/getauth. php? Time = "+ new Date (),
// Url: "{$ baseurl}/do. php? Model = welcome & act = getauth & time = "+ new Date (),
Success: function (msg ){
// Alert (msg );
Auth = msg;
}
});
// Alert (auth); the test value is null and does not enter ajax. why?
If (check! = Auth ){
Alert ("The verification code you entered is incorrect! ");
RefashImage ();
Return false;
}
Return true;
}
This is the code for getauth to obtain the verification code,
Session_start ();
Class getauth {
Public function getauth (){
// Obtain the verification code in the session.
$ Auth = $ _ SESSION ['code'];
Echo $ auth;
Exit;
}
}
$ Getauth = new getauth ();
------ Solution --------------------
Other browsers (Firefox, Aoyou) are good, and colleagues can run ie8.
It's only your misfortune. it's only your ie8 account.
------ Solution --------------------
Reinstall IE8