jQuery Mobile Cookbook


jQuery Mobile Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Create applications that use custom animations and use various techniques to improve application performance
  • Use and customize the various controls such as toolbars, buttons, and lists with custom icons, icon sprites, styles, and themes
  • Write simple but powerful scripts to manipulate the various configurations and work with the events, methods, and utilities which are provided by the framework

Book Details

Language : English
Paperback : 320 pages [ 235mm x 191mm ]
Release Date : November 2012
ISBN : 1849517223
ISBN 13 : 9781849517225
Author(s) : Chetan K Jain
Topics and Technologies : All Books, Web Development, Cookbooks, jQuery, Open Source

Table of Contents

Preface
Chapter 1: Get Rolling
Chapter 2: Pages and Dialogs
Chapter 3: Toolbars
Chapter 4: Buttons and Content Formatting
Chapter 5: Forms
Chapter 6: List Views
Chapter 7: Configurations
Chapter 8: Events
Chapter 9: Methods and Utilities
Chapter 10: The Theme Framework
Chapter 11: HTML5 and jQuery Mobile
Index
  • Chapter 1: Get Rolling
    • Introduction
    • Writing your first jQuery Mobile application
    • Using JS Bin to create a simple application
    • Chapter 2: Pages and Dialogs
      • Introduction
      • Writing a single-page template application
      • Writing a multi-page template application
      • Prefetching pages for faster navigation
      • Using the DOM cache to improve performance
      • Custom styling a dialog
      • Using CSS to create a bouncing page transition
      • Using JS to create a slide and fade page transition
      • Using data-url to handle the login page navigation
      • Using History API to create a custom error pop up
      • Chapter 3: Toolbars
        • Introduction
        • Using fullscreen fixed toolbars
        • Using persistent navbars in toolbars
        • Customizing the header with multiple buttons
        • Adding a customized round button to the header
        • Adding an image to the header
        • Adding a customized back button
        • Adding a layout grid to the footer
        • Chapter 4: Buttons and Content Formatting
          • Introduction
          • Scripting a dynamically added button
          • Using a custom icon in a button
          • Adding a custom icon sprite
          • Replacing the default icon sprite
          • Using alternate icons in a collapsible
          • Creating a nested accordion
          • Creating a custom layout grid
          • Using XML content
          • Using JSON content
          • Chapter 5: Forms
            • Introduction
            • Native styling of form controls
            • Disabling text controls
            • Grouping radio buttons in a grid
            • Customizing a checkbox group
            • Creating dynamic flip switch and slider controls
            • Using options to auto-initialize a select menu
            • Validating forms
            • Submitting a form using POST
            • Fetching data using GET
            • Creating an accessible form
            • Chapter 6: List Views
              • Introduction
              • Using inset and non-inset lists
              • Creating a custom numbered list
              • Using a nested list
              • Using a read-only nested list
              • Formatting content in a list
              • Using a split button list
              • Using image icons
              • Creating a custom search filter
              • Modifying a list with JavaScript
              • Chapter 7: Configurations
                • Introduction
                • Configuring the active classes
                • Configuring ajaxEnabled
                • Configuring autoInitializePage
                • Configuring the default transitions
                • Configuring ignoreContentEnabled
                • Configuring the page loading and error messages
                • Configuring the default namespace
                • Configuring hashListeningEnabled and subPageUrlKey
                • Configuring pushStateEnabled and linkBindingEnabled
                • Chapter 8: Events
                  • Introduction
                  • Using orientation events
                  • Using scroll events
                  • Using touch events
                  • Virtual mouse events
                  • Page initialization events
                  • Page load and remove events
                  • Page change events
                  • Page transition and animation events
                  • Using layout events
                  • Chapter 9: Methods and Utilities
                    • Introduction
                    • Using loadPage() to load a page
                    • Using changePage() to change a page
                    • Using jqmData() and jqmRemoveData()
                    • Using jqmEnhanceable()
                    • Using jqmHijackable
                    • Using $.mobile.base
                    • Parsing an URL
                    • Using $.mobile.path utility methods
                    • Using silent scrolling
                    • Chapter 10: The Theme Framework
                      • Introduction
                      • Theming a nested list
                      • Using a custom background
                      • Using custom fonts
                      • Styling corners
                      • Overriding the global Active State theme
                      • Overriding an existing swatch
                      • Using the ThemeRoller tool to create a swatch
                      • Chapter 11: HTML5 and jQuery Mobile
                        • Introduction
                        • Using the new HTML5 semantics
                        • Improving speed and taking your application offline
                        • Using Web Workers for intensive tasks
                        • Using local and session storage
                        • 2D drawing with Canvas
                        • Applying Gaussian blur on a SVG image
                        • Tracking your location with the Geolocation API
                        • Playing music with the <audio> element
                        • Viewing videos with the <video> element

                        Chetan K Jain

                        Chetan K Jain loves to code, and has been writing code for over 16 years now. He is a Senior Architect, and has worked on mobile technologies for over 4 years for Nokia. Since then, he has moved on to work as a freelance consultant. Chetan has significant experience in writing cross-platform mobile apps using jQuery Mobile, HTML5, CSS3, JavaScript, Nodejs, and has also worked extensively on Qt. Prior to mobile technologies, he has worked with Java technology and was also certified as an MCSD and MCSE in his early days. Chetan is an active contributor to open source development, and tries to help jQuery Mobile development whenever he can. He regularly participates in developer forums, and was earlier a top-ranked member and a "mad scientist" in the Nokia Qt Developer Forum. Chetan was born in Bangalore and lives there with his wife Shwetha and son Tanmay. The only time he ventured to live away from Bangalore was when he worked for over 4 years in the USA. His adventure didn't end there. He did a solo US cross country drive in his two door coupe from the east coast to the west and back, driving alone for over 8000 plus miles in 16 days to experience and live life as he calls it. His travelogue can be found at http://adventure.chetankjain.net. Chetan has contributed and published over 15 books to Gutenberg as a volunteer. He has also published four books on Jaina Literature and History written by his mother Saraswathamma. He is a voracious reader, and his other interests include music, movies, and travelling. Photography is his favorite hobby, and his clicks can be found at http://www.facebook.com/chetankjainphotos/photos_stream. Chetan can be reached at chetankjain@gmail.com. He also blogs at http://dev.chetankjain.net.
                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        jQuery Mobile Cookbook +    Marmalade SDK Mobile Game Development Essentials =
                        50% Off
                        the second eBook
                        Price for both: £24.64

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • Create single-page and multi-page applications that use custom CSS and JavaScript transitions; improve performance using Prefetch, DOM-Cache, and Application Cache
                        • Use fixed and full screen toolbars, navbars, and buttons; customize them with your own icons, icon sprites, and styles
                        • Use XML and JSON data in your application; format page content using layout grids, collapsibles, and nested accordions
                        • Build accessible forms; use form controls like flip switches, sliders, and select menus; validate and submit forms using Ajax
                        • Use various types of lists such as Inset, Numbered, Nested, Read-only, and Split Button lists; manipulate lists using JavaScript
                        • Use JavaScript to dynamically create and initialize controls, load and change pages, handle events; tweak and customize the framework configurations
                        • Explore HTML5 semantics and features such as Local Storage, Session Storage, History, 2D Canvas, 3D, Geolocation, Web Workers, Audio, and Video
                        • Use custom fonts and backgrounds, upgrade themes, override existing themes; generate and share new themes using the Theme Roller tool

                        In Detail

                        jQuery Mobile is an award winning, HTML5/CSS3 based open source cross-platform UI framework. It offers a very cool and highly customizable UX. It is built on the popular jQuery library and uses declarative coding making it  easy to use and learn. It is the market leader today considering the numerous browsers and platforms that it supports.

                        "jQuery Mobile Cookbook" presents over a hundred recipes written in a simple and easy manner. You can quickly learn and start writing code immediately. Advanced topics such as using scripts to manipulate, customize, and extend the framework are also covered. These tips address your common everyday problems. The book is very handy for both beginner and experienced jQuery Mobile developers.

                        You start by developing simple apps using various controls and learn to customize them. Later you explore using advanced aspects like configurations, events, and methods.
                        Develop single and multi-page applications. Use caching to boost performance. Use custom transitions, icon sprites, styles, and themes. Learn advanced features like configurations, events, and methods. Explore future trends by using HTML5 new features and semantics with jQuery Mobile.

                        "jQuery Mobile Cookbook" is an easy read and is packed with practical tips and screenshots.

                        Approach

                        This book is written in Cookbook style with a lot of practical tips, code, and step-by-step examples, to ease and quicken your learning curve.

                        Who this book is for

                        If you are a beginner with jQuery/JavaScript skills, this book offers you numerous examples to get you started.

                        If you are a seasoned developer, this book lets you explore jQuery Mobile in greater depth.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software