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

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

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