What Is Ajax?
380

AJAX is the short usage of "Asynchronous JavaScript and XML".

It is a technique for creating interactive applications web pages using JavaScript and XMLHttpRequest.

Ajax can make visible changes without having to reload page and don't interrupt user, providing faster working functionalities.

Multiple independent operations can be performed using the technique called XMLHttpRequest.

The main goal is to make web pages that can update the page faster with a small amount of data exchange with the server in the background, thus saving the user the trouble of updating the entire web page at any time. This means increasing the interaction, speed and usability of the web page.

Basic Ajax Code Structure and Usage

$ .ajax ({ // Beginning of Ajax Code
type: "POST", // Data Type: "GET" or "POST"
url: "save.php", // Link of controller where function will be executed.
data: name,  // Data to Send
success: function (result) { // Success parameter allows to perform actions according to the result returned from URL.
if (result == "successful")
{
    alert ("Success");
}
    else
{
    alert ("Fail");
}
}
});
If you are looking for consultation, fill the Contact Form below.
Be alone, that is the secret of invention; be alone, that is when ideas are born. Nikola Tesla
Haluk YAMANER - Personal
Contact Form
You must complete Security Verification to submit your form.