Published on 2006-02-28 10:52:15

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.


Related Entries

Member of the PHP Magazine Network, Copyright (C) 2005-2008 phpmagazine.net All Rights Reserved