jQuery provides various methods like ajax, load, get,
post, getJSON, getJSON etc to make an
Ajax call. In this post we shall see on how to use the Ajax() method to make an
Ajax call.
The Ajax() method is core method used to perform ajax calls using jQuery, The ajax method supports GET & POST requests, it also supports the server data returned in the following formats.
HTML
XML
Text
JSON
Script
url: "",
type: 'GET/POST',
data: {},
cache: <true/false>,
dataType: "text/xml/html/json",
success: function(result) {…});
}
});
Related Post
jquery ajax method
jquery ajax get example
jquery ajax post example
jquery ajax html response example
jquery ajax xml response example
jquery ajax json response example
jquery ajax text response example
The Ajax() method is core method used to perform ajax calls using jQuery, The ajax method supports GET & POST requests, it also supports the server data returned in the following formats.
HTML
XML
Text
JSON
Script
The Syntax for the Ajax() method is as follows.
$.ajax({url: "",
type: 'GET/POST',
data: {
dataType: "text/xml/html/json",
success: function(result) {…});
}
});
Related Post
jquery ajax method
jquery ajax get example
jquery ajax post example
jquery ajax html response example
jquery ajax xml response example
jquery ajax json response example
jquery ajax text response example
No comments:
Post a Comment