10. Accessing External Resources

Overview

By the end of this chapter, you will be able to describe AJAX, REST, JSON, and HTTP to APIs; perform service calls using a library such as jQuery and native XMLHttpRequest and be familiar with the pros and cons of each approach; use an external API to retrieve data using JavaScript; use some jQuery functionality for the UI and events; and identify cross-domain-capable APIs and use cross-domain requests.

In this chapter, we will cover various approaches to using AJAX to obtain data, primarily from RESTful services.

Introduction

In the previous chapter, you learned about Node.js, which runs on the server-side. This chapter will cover the other side of services – you will learn how to call them from ...

Get The JavaScript Workshop 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.