Synchronization during Ajax webpage running on Firefox

Source: Internet
Author: User

(From another person)

 

Synchronization during Ajax webpage running on Firefox
XMLHTTP. onreadystatechange = callback;
XMLHTTP. Open ("get", qrstr, false );
XMLHTTP. Send (null );

This was originally executed in IE.CodeIt seems that, in order to avoid a problem, XMLHTTP is set as a synchronization operation.
The problem occurred when I used ff to read the code after installing Firefox 1.5 the day before yesterday, the callback was not executed at all. I was puzzled for a long time and found that it was a synchronous operation (XMLHTTP. open ("get", qrstr, false), changed to asynchronous (XMLHTTP. open ("get", qrstr, true) to solve the problem.

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.