Bachalo
Bachalo

Reputation: 7219

jQuery Mobile vs regular jQuery

I read this thread jQuery vs jQuery Mobile vs jQuery UI?

but still confused. Is jQuery mobile interchangeable with desktop jQuery?

Can jQuery mobile be used for desktop development? and Can you use regular jQuery for mobile development?

Other than better touch support , what other advantages does jQuery Mobile offer?

Upvotes: 5

Views: 3250

Answers (2)

Oliver Spryn
Oliver Spryn

Reputation: 17368

Let me help explain this a little bit.

jQuery is the basic foundation for jQuery Mobile and jQueryUI, sort of like the basement is for the rest of a house. jQuery itself has many great tools to manipulate a webpage and add interactivity to a page, as well as many other fancy features that can't be accomplished by HTML and CSS alone. Here is their site for all of the different things that can be done with jQuery alone: http://api.jquery.com/.

jQueryUI is built on top of jQuery, much like how the first level of a house is built on top of a basement. jQuery UI contains a series of pre-built, interactive widgets which can be easily integrated into a website. Keep in mind that all of jQuery UI was built using simply jQuery, JavaScript, and CSS. It is possible (and really easy) to replicate these widgets yourself using only jQuery. These guys were just nice enough to write them for you. :) Here is a site where you can check out all of their widgets: http://jqueryui.com/demos/.

Last we come to jQuery Mobile. This is also built on top of jQuery, but not on top of jQuery UI. Using my previous analogies, you can think of it as a garage. It's not on top of a first floor, but it sits right beside it, with a different purpose than the main living space of a house. jQuery Mobile is like a combination of jQuery and a lightweight, altered version of jQuery UI, optimized for use on mobile devices. In essence, it is a framework of code and widgets that add application-like features and widgets to a webpage for mobile use. You can demo jQuery Mobile right here: http://jquerymobile.com/demos/1.1.0-rc.2/, or you can quickly build your own jQuery Mobile page using this drag and drop tool: http://codiqa.com/.

Hope that was helpful in distinguishing between them.

Upvotes: 13

King Friday
King Friday

Reputation: 26106

jQuery is a library in which jQuery Mobile and jQuery UI rely upon.

jQuery Mobile is designed for the touch and smaller screen experience.

jQuery UI is designed for the standard screen experience sans touch.

jQuery in itself is perfectly fine to use it for mobile or non-mobile. Its just jQuery Mobile and jQuery UI have already done a nice job of building that for you as they are based on jQuery itself.

I'm not sure what more needs to be said.

Upvotes: 4

Related Questions