About a problem with synchronous asynchronous pull server

Source: Internet
Author: User
An issue with synchronous asynchronous pull server

Everyone in the use of JS request PHP server to do something, generally use the JSON bar
If a button is made for the user to request, it will appear that the user accidentally double-clicked the button
I have seen a lot of this method of preventing duplicate submissions, but today I found myself testing it, I changed the default asynchronous mode to synchronous, it seems to be able to solve, do not know whether it is true. What do you have in your opinion?

Share to:


------Solution--------------------
What else to do with Ajax in sync ...
If you just want to prevent the double click the Post Settings button is not available.

  • 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.