Professional Documents
Culture Documents
AJAX
AJAX
=====
What is AJAX?
- AJAX stands for 'Asynchronous JavaScript And Xml'.
- It is a technique of exchanging data between client and server,
asynchronously (in background).
==============================================================
$.ajax(
{
url: "server url here",
type: "GET/POST", //type of request
contentType: "application/json; charset=utf-8", //content type
sent to server
dataType: "json", //Expected data format from server
success: ServiceSucceeded, //On Success
error: ServiceFailed // On exception
}
);
function ServiceFailed(xhr)
{
alert(xhr.responseText);
}