My Account Log in

1 option

Web API cookbook / Joe Attardi.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Attardi, Joe, author.
Language:
English
Subjects (All):
Application program interfaces (Computer software).
Web applications.
Microsoft .NET Framework.
Physical Description:
1 online resource (300 pages) : illustrations
Edition:
First edition.
Place of Publication:
Sebastopol, CA : O'Reilly Media, Inc., 2024.
Summary:
JavaScript gives web developers great power to create rich interactive browser experiences, and much of that power is provided by the browser itself. Modern web APIs enable web-based applications to come to life like never before, supporting actions that once required browser plug-ins. Some are still in an experimental stage, but many are ready for use today. With this hands-on cookbook, author Joe Attardi helps you explore the powerful APIs available in modern browsers and guides you through the specific tasks that they unlock. Because these features are web standards, there is comprehensive documentation available from trusted resources such as MDN Web Docs. The knowledge you'll gain is transferable across different companies and projects.
Contents:
Cover
Copyright
Table of Contents
Preface
The Power of Modern Browsers
Drawbacks of Third-Party Libraries
Who This Book Is For
What's in This Book
Additional Resources
CanIUse.com
MDN Web Docs
Specifications
Conventions Used in This Book
Using Code Examples
O'Reilly Online Learning
How to Contact Us
Acknowledgments
Chapter 1. Asynchronous APIs
1.0 Introduction
Callback Functions
Events
Promises
1.1 Working with Promises
Problem
Solution
Discussion
1.2 Loading an Image with a Fallback
Solution
Discussion
1.3 Chaining Promises
1.4 Using the async and await Keywords
1.5 Using Promises in Parallel
1.6 Animating an Element with requestAnimationFrame
1.7 Wrapping an Event API in a Promise
Chapter 2. Simple Persistence with the Web Storage API
2.0 Introduction
Getting and Setting Items
Disadvantages
2.1 Checking for Web Storage Support
Discussion
2.2 Persisting String Data
2.3 Persisting Simple Objects
2.4 Persisting Complex Objects
2.5 Listening for Storage Changes
2.6 Finding All Known Keys
2.7 Removing Data
Chapter 3. URLs and Routing
3.0 Introduction
Parts of a URL
3.1 Resolving a Relative URL
3.2 Removing Query Parameters From a URL
Problem
Solution
3.3 Adding Query Parameters to a URL
3.4 Reading Query Parameters
3.5 Creating a Simple Client-Side Router
3.6 Matching URLs to Patterns
Chapter 4. Network Requests
4.0 Introduction
4.1 Sending a Request with XMLHttpRequest
4.2 Sending a GET Request with the Fetch API
4.3 Sending a POST Request with the Fetch API
4.4 Uploading a File with the Fetch API
4.5 Sending a Beacon
4.6 Listening for Remote Events with Server-Sent Events
4.7 Exchanging Data in Real Time with WebSockets
Chapter 5. IndexedDB
5.0 Introduction
Object Stores and Indexes
Keys
Transactions
Requests
5.1 Creating, Reading, and Deleting Objects in a Database
5.2 Upgrading an Existing Database
Notes:
OCLC-licensed vendor bibliographic record.
Includes index.
ISBN:
9781098150686
1098150686
OCLC:
1419273521

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account