O'Reilly logo

Beginning PhoneGap: Mobile Web Framework for JavaScript and HTML5 by Yogesh Patel, Rohit Ghatol

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4

Using PhoneGap with jQuery Mobile

While PhoneGap provides a platform to allow JavaScript apps to access native phone features, there are many other things that contribute to a mobile HTML app.

One of the most important parts of the mobile HTML application is the UI. You could write the entire UI by hand using HTML, JavaScript, and CSS. However, any web developer will tell you that there are many issues with this approach, including the following:

  1. Not all browsers are same; you need a cross-browser framework to be successful. Even if most mobile browser are webkit based, its best to use a framework that abstracts the browser differences from a developer.
  2. If you were coding by hand, most of your code would be of drawing the UI, modifying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required