background preloader

Widgets

Facebook Twitter

5 Ways to Make Ajax Calls with jQuery - Nettuts+ There are at least five ways to make AJAX calls with the jQuery library. For beginners, however, the differences between each can be a bit confusing. In this tutorial, we'll line them up and make a comparison. Additionally. we'll review how to inspect these AJAX calls with Firebug as well. This section is for those who have no idea what AJAX is. In Gmail, switch from inbox to draft. The key to AJAX's concept is "asynchronous".

Now we should know what AJAX actually is. For static content, we may want the response cached. The most common use of AJAX is for loading HTML from a remote location and injecting it into the DOM. Click on the first button named "load(). " Below is the JavaScript code for this effect: $.ajaxSetup forces the browser NOT to cache AJAX calls.After the button is clicked, it takes a little while before the new HTML is loaded. Now, let's explore more details of the request with Firebug: Open Firebug.Switch to the "Net" tab.

The request is displayed, right? AjaxDaddy - Ajax Examples in Action. Javascript Library - plugins jquery - JavaScript/DHTML - Tutoria.