Jquery mobile Library compatibility issues close ajax

Source: Internet
Author: User

Jquery mobile is a very good mobile js code that can achieve various touch screen effects. However, a large number of incompatibility problems need to be found during use. After verification, it is found that it is caused by ajax, I will share with you the solution below.

The previously written program obtained the execution in jquery mobile and found many problems, so the process could not proceed, the reason for this phenomenon is probably related to the mobile processing mechanism. The mobile library encapsulates all forms from and hyperlink a as ajax submissions, and requires the format of the returned data, if it is not written in the format, There will be various problems. If you want to use the jquery mobile library, you can follow these steps:
Add the data-ajax attribute data-ajax = "false" to the form and a elements"


For example


<Form action = "xxx data-ajax =" false ">
</Form>

<A xhref = "xxxx" data-ajax = "false"> link </a>

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.