¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 14 de 15 · Multimedia

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:

 

 

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?