8. Remote Data Access
Sometimes, your application might need to access data from a remote database or from one or more web services. You might even want to synchronize the data on the phone with data stored remotely.
Hybrid iPhone applications make this easy. Because they are hybrids, they have full access to the XMLHttpRequest object in JavaScript. This chapter shows you how to retrieve data from an RSS feed and display it in your application.
As with the database access discussed in Chapter 7, “Database Access,” an easy-to-use wrapper for the XMLHttpRequest object is explained in the first section. Later sections explain how the wrapper is created and its inner workings.
Section 1: BrowserAJAXAccess Example Application
In Chapter 7, the nativeDBAccess ...
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.