Ajax navigation problem. ajaxLinksEnabled/ajaxFormsEnabled not working?
Hi!
I'm trying to convert an existing data collection system to jQuery Mobile: it is based on CGI Perl scripts which produce HTML forms. It was working quite well with Alpha 1 but it is broken since Alpha 2. I think that the problem is due to the Ajax navigation system: it duplicates the forms in the same DOM tree and, for example, some tags exist with the same ID which is weird.
I've tried to fix the problem by disabling Ajax links and forms by using mobileinit as follow:
- $(document).live("mobileinit", function() {
- $.mobile.ajaxLinksEnabled=false;
- $.mobile.ajaxFormsEnabled=false;
- });
I've added that script just before loading jquery.mobile.js but, as far as I can see, the navigation is still handled by Ajax : I see the spinning wheel between each "page" and various page are still wrapped by a <div data-role="page"></div> in the same DOM tree).
Thank you in advance for your help on this!
Laurent, from Nantes (France).