The same asynchronous problem in MooTools

Source: Internet
Author: User

The MooTools request (CALSS) is the default for asynchronous requests (Http://www.mootools.net/docs/core/Request/Request;async-Boolean:defaults to true) If set to False, the requests would be synchronous and freeze the browser during request. So that the execution speed will occur and the order of execution is not in accordance with our wishes. Line of issue.

To resolve this problem, simply set "request" as the synchronization request, as follows:

$ (variable). Set (' Load ', {async:false}); Variable the variable to be requested

$ (variable). Load (Actionpath, {});

Also correct the No. 3772 line of Mootools-1.2-core.js "if (load) send.cancel ();" For "if (load) load.cancel ();" Check that the Load property is not empty, and if it is not, remove it and reset it.

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.