I am totally confused with ajax methods. I am new to ajax ajaj(asynchronous javascript and json). Can anyone help me or give any idea how to implement ajax, GETajax, POSTajax in javascript like
$.ajax({
method: "POST",
url: "some.php",
data: { name: "John", location: "Boston" }
}).done(function( msg ) {
alert( "Data Saved: " + msg );
}); // ajax
$.get( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
alert( "Load was performed." );
}); // getajax
$.post( "ajax/test.html", function( data ) {
$( ".result" ).html( data );
}); //postajax