« Explore Amazon Web Services with AJAX - Price Compare - Day 2 | Main | AutoAssist 0.5.1, Pretty JavaScirpt Ajax Autocomplete Component »

New AJAX plugin for jQuery

John added a new AJAX plugin for jQuery. The new plugin have one public method which is load(URI,Params,Callback), and could be used to retrieve remote HTML and loads it into the matching elements :

$("p").load("/test/ajax-test.html");
jquery.gif

There are two optional methods to the load method, Params and Callback. Either one is optional, so it's perfectly valid to call the function like: load(URI,Callback). These two parameters provide the ability to send a POST request to a server (Params) or receive notification whenever the file has finished loading (Callback). There is also a number of bug fixes in this release :

* A problem with using the $(…,Context) argument, with non-HTML documents has been resolved.
* It’s now possible to pass in a jQuery object as a context: $(”title”,$(”head”));
* A problem with attributes not resolving properly in IE has been fixed.
* Another issue with toggling inline elements has been fixed.

Bookmark this article at these sites
Comments
1

Cool! I just noticed though that in your post, apostrophes arent recognized. Is it possible that this punctuation be recognized here? Sometimes they can disrupt or disturb your explanation.

Post a comment





(Email will remain hidden)





Please enter the security code you see here




Related entries
Email to a friend
Email this article to:


Your email address:


Message (optional):