Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
JavaScript and JSON Essentials

You're reading from   JavaScript and JSON Essentials If you fancy a less verbose data format than CSV or XML, then JSON could be for you. This tutorial will teach you about using JSON with JavaScript for effective local storage or Internet transfers.

Arrow left icon
Product type Paperback
Published in Oct 2013
Publisher Packt
ISBN-13 9781783286034
Length 120 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sai S Sriparasa Sai S Sriparasa
Author Profile Icon Sai S Sriparasa
Sai S Sriparasa
Arrow right icon
View More author details
Toc

Chapter 5. Cross-domain Asynchronous Requests

In the previous chapter, we used jQuery's getJSON method to ingest the students JSON feed; in this chapter we will take a step forward and send request parameters over to the server. Data feeds are often large amounts of data that are made available; the data that is part of such feeds is normally generic and can be considered too heavy for a targeted search. For example, in the students JSON feed, we are exposing the whole list of student information that is available. For a data vendor who is looking for students who are enrolled in certain courses or who reside in a given ZIP code to hire them as interns, this feed is going to be generic. It is common to see development teams build Application Programming Interfaces or APIs to give such data vendors numerous ways to target their search. This is a win-win situation for both the data vendor and for the company that owns the information since the data vendor only gets the information that they...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime