What does data-ajax="false" really do?
ajax, html, jquery, jquery-mobile
Solution
`data-ajax` is a feature of jQuery Mobile. JQM by default will try to load pages via ajax for improved user experience and transitions. If you set `data-ajax='false'` then JQM will do a normal page request instead of using ajax. This can be used on forms as well as links.
From the docs:
This tells the framework to do a full page reload to clear out the Ajax hash in the URL
If you want to disable ajax on all of your links then instead of adding `data-ajax` to everything, you can do it like this:
$(document).bind("mobileinit", function () {
$.mobile.ajaxEnabled = false;
});
Problem
The links on my site don't work and I got an solution of using `data-ajax="false"` on my anchors without getting a true explanation. Can someone help me?