Book Image

Creating Mobile Apps with jQuery Mobile

By : Shane Gliser
Book Image

Creating Mobile Apps with jQuery Mobile

By: Shane Gliser

Overview of this book

<p>jQuery Mobile is a touch-optimized web framework (also known as a JavaScript library or a mobile framework) currently being developed by the jQuery project team. The development focuses on creating a framework compatible with a wide variety of smartphones and tablet computers made necessary by the growing but heterogeneous tablet and smartphone market. The jQuery Mobile framework is compatible with other mobile app frameworks and platforms such as PhoneGap, Worklight, and more.<br /><br />Creating Mobile Apps with jQuery Mobile reflects the author’s years of experience and exposes every hidden secret which will ease your mobile app development. With just a smattering of design and user experience thrown in, going through this book will allow you to confidently say, “yes, I can do that.”<br /><br />We’ll start out with effective mobile prototyping and then move directly to the core of what every one of your mobile sites will need. Then, we’ll move on to the fancy stuff.<br /><br />After creating some basic business templates and a universal JavaScript, we will move into the more interesting side of mobile development but we always try to keep an eye on progressive enhancement. jQuery Mobile is all about reaching everyone. So is this book.<br /><br />"Creating Mobile Apps with jQuery Mobile" will take your basic mobile knowledge and help you make versatile, unique sites quickly and easily.</p>
Table of Contents (17 chapters)
Creating Mobile Apps with jQuery Mobile
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

What we need to create our site


We have a viable boilerplate. We have a customer. Let's get to work and code what we drew in Chapter 1, Prototyping jQuery Mobile. For this chapter, we'll stick to just the first screen since it's all we need to teach the skills.

Here's what we need to think about:

  • Logo: We'll simply include the logo from the desktop view.

  • Buttons: There are several ways we could accomplish these. At first glance, we might think about using standard data-role="button" links. We could leverage a ui-grid (http://jquerymobile.com/demos/1.2.0/docs/content/content-grids.html) to add the formatting. If we were only intending to optimize for phones held vertically, that would be a great approach. However, we're going to think outside the box here and create a responsive menu that will react well at different resolutions.

  • Icons: Those are not standard jQuery Mobile icons. There are countless icon sets online that we could use but let's go with Glyp hish (http://glyphish.com/). They...