How to use jQuery - AJAX Get and Post Methods

preview_player
Показать описание
In this video i show you how to use the Jquery ajax get and post methods.
HTTP Request: GET vs. POST
Two commonly used methods for a request-response between a client and server are: GET and POST.

GET - Requests data from a specified resource
POST - Submits data to be processed to a specified resource
GET is basically used for just getting (retrieving) some data from the server. Note: The GET method may return cached data.

POST can also be used to get some data from the server. However, the POST method NEVER caches data, and is often used to send data along with the request.

jQuery $.get() Method
The $.get() method requests data from the server with an HTTP GET request.

jQuery $.post() Method
The $.post() method requests data from the server using an HTTP POST request.

Next Tutorial: jQuery Ajax POST with PHP | Send data using PHP and AJAX

Links:
Рекомендации по теме
Комментарии
Автор

What is the right way to do if I need form, then data from fields computed and output to another fields for check, then after confirmation this fields need send to script for use it in api, and after api response show result under all form fields or in popup. Moover I need save history to know what done and not do this again.

JVSd-SG