Thursday, November 18, 2010

AJAX Functions

Today’s web sites employ techniques to load content when requested without
a page refreshing jQuery permits us to accomplish this with ease. AJAX methods
initiate these content requests and allow us to monitor their progress.
$('#introduction > h2 a').click(function() {
$('#introduction').load(this.href);
return false;
});

Also alternatively .load() method allows developers to get another HTML document from the server and place in it in the existing document all with one line of code.

No comments:

Post a Comment