O'Reilly logo

Developing Hybrid Applications for the iPhone: Using HTML, CSS, and JavaScript to Build Dynamic Apps for the iPhone by Lee S. Barney

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

2. JavaScript Modularity and iPhone Applications

Usually, when writing JavaScript, two phrases come to mind: cross-browser compatibility and complexity. This chapter shows you how to avoid complexity in hybrid iPhone applications, and supplies you with source code that accomplishes complex behavior quickly and easily without sacrificing flexibility. With iPhone hybrid applications, you do not need to worry about cross-browser compatibility because only the Safari engine called WebKit is used. This makes it even easier to write interesting and fun JavaScript applications.

Section 1: Modularity

The concept of modularity has been around for a long time in both the computing and noncomputing industries. The essence of modularity is captured in ...

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