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

7. Database Access

Most JavaScript-based applications require a web server to store data. With iPhone OS 2.0 or later and the UIWebView class, you can store data on the iPhone without any network access. This means that the application you create is a first-class citizen on the iPhone. This chapter shows you how to store and retrieve data and create databases and tables. This chapter provides you with an easy-to-use JavaScript wrapper for the SQLite database used on the iPhone. The first sections show you how to start using the database. The later sections discuss how to understand the code used in the wrapper.

Section 1: BrowserDBAccess Example Application

The BrowserDBAccess example was created to help you understand how databases can be ...

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