24 February 2015 07:30
How to Use jQuery’s $.ajax() Function
(via)In our previous blog(What is AJAX and How it works ?), we discussed about AJAX and how to implement the same using jQuery.
We did try to learn the same with the help of an basic example. In this tutorial, we are going to take it from there and will try to understand about the various available parameter in ajax function. Though we can’t cover all as it is a long list which you can read here but we shall cover the important parameters.
But before that, let’s take another example.
What is AJAX and How it works ?
(via)There will be hardly any web application in ear of web 2.0, which does not employ AJAX. Actually, you can’t imagine an interactive application without AJAX. AJAX is an integral part of web development stack. In this tutorial, we shall explain about AJAX and how can we implement AJAX.
Let’s start with what wikipedia says about AJAX.
1. A method for exchanging data asynchronously between browser and server, thereby avoiding page reloads. The XMLHttpRequest (XHR) object is usually used, but sometimes an IFrame object or a dynamically added tag is used instead.
2. A format for the data sent to the browser. Common formats include XML, pre-formatted HTML, plain text, and JavaScript Object Notation (JSON). This data could be created dynamically by some form of server-side scripting.
1
(2 marks)