GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 14 von 15 · Medien

JQuery AJAX

Kostas Diakogiannis

JQuery AJAX

Making  JQuery AJAX requests 

JQuery also provides some functions that deal with asynchronous operations and make asynchronous requests (exactly like the fetch api does). Some of the most common ways to perform such requests by using JQuery is: 

$('selector').load(url) => Gets the data from the specified url and loads the response to selector element. Docs here!

$.get(url) => Performs a get request to the server. Requests data from the source. Docs 

$.post(url) => Submits data to the specified resource.

Find more about $get / $post methods here!

$.ajax(url, objectSettings) => Performs any type of request in the specific url. Accepts also an object of parameters as a second argument.  Returns a promise, that can be chained either through the .done() functions (see image above), or as the async /await method.

Official $.ajax method documentation here:

 

 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck