AJAX and jQuery

Posted by kumarjit in The Internet, Web Hosting, Web Hosting Tips

1 Star2 Stars (1 votes, average: 0.00 out of 5)

AJAX and jQuery

AJAX

Asynchronous JavaScript and XML, or AJAX, allows the client side of an application to communicate with the server side of the application. Before AJAX was introduced, there was no other communicating channel, through which the client party of any web application could directly communicate with the server. Instead, page loads would have to be used. However, with the development of AJAX, the client and the server can communicate swiftly and easily with each other. JQuery is a library for developing AJAX based applications which allows programmers to be simple and concise while developing JavaScript. JQuery can also be used to handle events and develop animations, while at the same time seamlessly adding AJAX support to web applications.

Uses of AJAX

AJAX scripts are usually activated by a mouse click on the side of the user, after which a request is sent to the server-side script (like PHP, ASP), using XML. The server side script accepts the input from JavaScript accesses the database and processes the requisite data. This data is then sent back to the client side of the application using XML. A JavaScript function called the callback function caches the data and updates the web page.

Login

AJAX also finds use in networking sites, where instead of going to a login page and then moving to the page you originally wanted to go to, AJAX allows you to enter your login credentials directly in the original page, from where a request is sent to the server to log the user in. The sever lets the browser know that the user is logged in, and the current page is then updated as required.

Voting

AJAX is also used by some popular sites to decide the content of the sites through voting.

AJAX and jQuery

Search suggestion and Auto Fill

Google was one of the first heavyweights to implement AJAX in their search suggestion tool, as well as auto-complete applications, which used AJAX to search and suggest for possible results after every keystroke.

AJAX and jQuery

AJAX is also used for several other purposes like light boxes, which have replaced conventional and irritating pop-ups. AJAX also finds use in chat servers, where two main AJAX processors work as the “eyes” and the “ears” of the server.

jQuery

As far as the advantages of jQuery are concerned, one of the principal reasons why it is so popular among website developers is the fact that it is much more lightweight, easy to use and relatively faster than other commonly used libraries. Using jQuery, it is possible to develop concise scripts as compared to other libraries, which make it further possible to develop to perform a large array of functions using lesser complicated and extensive coding. Another advantage that jQuery has over other libraries is that it is compatible with all browsers, which eliminates the necessity to develop separate client side codes for different browsers. JQuery’s principal advantage is its ability to develop lightweight AJAX applications in ASP.Net using JSON support, thus bulky ASP.Net codes can be avoided. The functionality which is provided by the jQuery library can also be extended, and using jQuery also makes it possible to incorporate several templates freely available on the Internet.

Use jQuery with Ajax and Bounceweb hosting to make your applications faster!

Be Sociable, Share!

Leave a Reply

You must be logged in to post a comment.