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

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.