O'Reilly logo

iPhone JavaScript Cookbook by Arturo Fernandez Montoro

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

Chapter 6. Exchanging Data: AJAX

In this chapter, we will cover:

  • How to send HTTP requests
  • Processing JSON responses
  • Sending cross-domain requests

Introduction

Modern web applications make intensive use of AJAX. This is a concept that can be defined as a technique of using the JavaScript programming language for sending the HTTP request to a remote server without the need to reload the page. The main advantage of this technique is the speed, no doubt. We don't need to reload all the content of the page causing many extra requests. Other times, reloading a page implies that we carry out only one request but if this requests returns a lot of information - for example, 50 records with 10 fields for each one, we need more time. Apart from the speed, another ...

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