O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 14 de 15 · Mídia

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:

 

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?