This tutorial will teach you the basics of jQuery Mobile framework. This tutorial has been prepared for beginners to help them understand basic jQuery Mobile. jQuery Mobile uses HTML 5 and CSS 3 features to enhance basic HTML markup to . and Solaris, and has great step-by-step tutorials and how-to guides. 1 Getting Rolling. • Introduction. • Writing your first jQuery Mobile Application. • Using JS Bin to create a simple application. 2 Pages and Dialogs. • Introduction.
|Language:||English, Spanish, French|
|Distribution:||Free* [*Register to download]|
Part i the Foundation oF jQuery Mobile chapter 1 Adding the jQuery Mobile framework to your website 30 Creating a Basic Dialog Window. Learn to build mobile web sites using jQueryMobile and. HTML5. • Learn about PhoneGap for building native iPhone/iOS &. Android Apps. Publishing's books, jQuery Mobile Framework Beginner's Guide and jQuery for Did you know that Packt offers eBook versions of every book published, with PDF the manifest can do, check out freezovralomi.cf
About this tutorial This tutorial introduces the jQuery Mobile JQM framework for writing mobile web applications targeted at the mobile industry's leading browsers.
After a brief look at one of the many ways in which you can construct a JQM application and some of the ways in which JQM enhances fundamental web UI elements, the tutorial takes a look at a basic sales force automation requirement.
With the problem in hand, the tutorial maps out a plan to implement a solution for mobile device users, without the need for native mobile development.
The completed application is demonstrated so that you can get a feel for where the tutorial will take you as you follow along and build your own application, step by step. The source files are examined, function by function, as you learn to implement the solution using JQM. The tutorial concludes with a couple of tricks on making the application easy for your users to access on their mobile devices.
Prerequisites To follow this tutorial, you need the following: Text editor—You can use any text editor you prefer. An editor with syntax highlighting might come in handy. JQuery Mobile links—You actually do not need to download anything. Web browser—This browser is used to view the jQuery Mobile help and documentation.
You can edit files in vi, but who wants to? For testing on a physical device, I used a Nexus One running Android 2. See Related topics for helpful links; download the source code for the sample application.
While jQuery Core has a large installed base, JQM is in its infancy and at the time of this writing was still in alpha mode. Look at just what the JQM project hopes to accomplish. Like jQuery, JQM is a freely available, open source code base that is hosted directly on the Internet. In fact, the jQuery core library itself is receiving quite a bit of attention as part of the JQM effort to unify and optimize the code base.
This attention speaks volumes to just how far mobile browser technology has advanced in a very short time. Listing 1 demonstrates how easy it is to add jQuery Mobile files to an application. Listing 1. A CDN is used to distribute often-used files across the Internet, making download speeds as fast as possible. CDNs are often deployed across large infrastructures, which reduce the path these files need to travel to a minimum distance by placing files in strategic locations across the Internet.
Keep in mind that every page of the application needs to download these files, so keep their size to an absolute minimum and rely upon caching! The versions in Listing 1 are actually jQuery Mobile, alpha release 1. Alpha release 2 is available, but due to some buggy behavior, this tutorial relies on the first alpha release of the code.
By the time you read this tutorial, a newer version of the JQM files is likely to be available for download. Note that it is also possible to download a copy of the jQuery files and host them directly from your own web server. This approach is not a bad idea, particularly if you are releasing a commercial application that relies on this framework. Changes to these frameworks can and do occur, sometimes to the detriment of applications that rely on specific behavior.
Commercial enterprises are typically more interested in predictable behavior that is easier to support as opposed to always having the latest bells and whistles. Made for touch JQM is a touch-optimized framework for constructing a consistent and desirable user experience for mobile browser-based applications. Much of what you already know about writing web applications still applies; however, the objective of making applications look consistent is a real key to the JQM approach.
JQM has stylized the standard form elements in such a way to make them both visually attractive and easy to maneuver. It is recommended that you review the documentation and demos in Related topics and look at the demo source code in the Download section.
At the time of this writing, the jQuery Mobile framework is an Alpha 2 version v1. The code is in draft form and is subject to change. Yet, the existing framework is pretty solid. With an impressive set of components available in the alpha release, jQuery Mobile promises to be a great framework and tool set for developing mobile web applications.
Theming The framework also provides a theme system that allows you to provide your own application styling. When used with toolkits such as PhoneGap see Related topics , which uses web technologies to build stand-alone applications, the jQuery Mobile framework can help simplify your application development. This arena is where jQuery Mobile's progressive enhancement and graceful degradation support come into play.