I'm developing a web app. MySql/PHP back-end, and HTML/jQuery front-end.
I wanted to use jQuery UI framework.
Now is see that jQuery Mobile is out, and I want to make the app accessible to mobile devices as much as possible.
I Googled, but didn't find a quality answer.
Can I make it all to work form the same code if I use jQuery Mobile?
I'd like it to show mobile widgets if accessed form mobile browser.
But use jQuery UI widgets is accessed from desktop browser.
Is that possible just by using jQuery Mobile and its markup, or I have to write the front-end for mobile (jQuery Mobile) and desktop (jQuery UI) separately?
That is, can jQuery Mobile, automatically "fall-back" to jQuery UI if accessed from desktop browser.
However, jQuery Mobile is a full framework which is built on jQuery and jQuery UI foundation. It makes use of features of both jQuery and jQueryUI to provide both UI components and API features for building mobile-friendly sites.
Compatible with all major desktop browsers as well as all major mobile platforms, including Android, iOS, Windows Phone, Blackberry, WebOS, Symbian. Built on top of jQuery core so it has a minimal learning curve for people already familiar with jQuery syntax. Theming framework that allows creation of custom themes.
jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. On the other hand, jQuery Mobile is detailed as "Touch-Optimized Web Framework for Smartphones & Tablets".
The framework allows developers to build applications that can be accessed by the widest number of browsers and devices, whether it is Internet Explorer 6 or the newest Android or iPhone. Mobile jQuery also gives developers the ability to render basic content (as built) on basic devices.
I think it largely depends on what you want to do and functionality you're trying to capture. If you want a webpage to behave a certain way on mobile and the same desktop, then with some careful coding/testing, you'll be alright with jquery.mobile.
If you check out the CSS for jquery.mobile (uncompressed version), you can actually edit the code directly to show the HTML elements the way you want to for particular screen sizes. Just select the one for desktop / large screen sizes to scale appropriately.
Depending on what you're trying to accomplish in terms of your mobile version, I'd also check out jQTouch - which allows for mobile-specific functionality, such as "tap" (in place of "click"), as an example - but also has a desktopCompatability option, so it reverts for desktop browsers.
One note, with either of these libraries, you'll still need the root jquery library.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With