Use only part of jQuery for mobile

I would like to use widgets from jQuery Mobile - buttons, dropdown, etc.

I already have a website that was developed without using jQuery mobile, which has its own menus and links - and when I try to add the jQuery mobile framework to it, it causes all kinds of problems (redefines CSS, tries to capture page transitions, etc. .).

Is it possible to disable some functions of the framework?

This is related to the question: Removing unused jQuery Mobile items? - but this is due to minimizing the size of the script. I just want to disable certain functionality, so it does not interfere with the rest of my application.

Update. Part of the problem caused by using jQuery Mobile "as is" is that it will try to download all links via ajax. It can be softened by adding

rel = "external"
into links, so jQM will not try to download it via ajax.
+3
source share
3 answers

JQM is coming soon. As of 5/4/2012 it is still in beta. Hang in there and the feature will be available anytime. I will try to update this answer when it is released.

Update here the link to the JQM constructor http://jquerymobile.com/download-builder/

+3
source

data-role = "none" - -

+1

- , , .

, jQuery Mobile . , jQuery Mobile . , - (, , ) jQuery Mobile.

, Symfony 2:

(function($) {
  $(document).bind('mobileinit',function() {
    $.mobile.ajaxEnabled = false;
  });
})(jQuery);
+1

All Articles