working with ajax in jQuery. Very simple and easy technique.
jQuery.ajax( options )
option may contain–>
type- type of data send {GET OR POST}.
url- location of file where data has to be send.
cache- if set to false then page is not cached by browser.
data- parameters passed to requested file.
success- what to do when request is succeeded.
-
-
$.ajax({
-
type: "POST",
-
url: "test.php",
-
cache: false,
-
data: "name=computer&location=us",
-
success: function(msg){
-
alert( msg );
-
}
-
});
Post a Comment