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 ...

Get Developing Hybrid Applications for the iPhone: Using HTML, CSS, and JavaScript to Build Dynamic Apps for the iPhone now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.