September 2024
Beginner to intermediate
985 pages
35h 37m
English
Generating Ajax requests is also considerably simplified by jQuery. In this section, we’ll show you how to perform the examples in Chapter 9 for Ajax-based loading of HTML, XML, and JSON data via the appropriate jQuery methods.
For creating Ajax requests, jQuery provides several methods, listed in Table 10.25. These are methods that—with the exception of the load() method—are called not on a selection of elements, as has been the case so far in this chapter, but directly on the $ object. Therefore, we call these methods global jQuery methods ahead.
|
Method |
Description |
|---|---|
|
$.ajax() |
Performs an asynchronous HTTP request |
|
$.get() |
Performs an HTTP request using the HTTP ... |
Read now
Unlock full access