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