Questions about ajax support in ie8-php Tutorial

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.