background preloader

Tutorials

Facebook Twitter

Videoaula

Fuel Your Coding. Flash, Fireworks, ColdFusion, Freehand and tutorials for Dreamwe. 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. If you don't fall into this category, feel free to skip to the next section. 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: Free Ajax Tutorials and Libraries - freeprogrammingresources.com.