Over a million developers have joined DZone.

ajaxContent jQuery Plugin Updated

· Web Dev Zone

Andrea Campolonghi has released v2.1 of his ajaxContent jQuery plugin. The plugin, designed to greatly facilitate the insertion of content into DOM nodes via Ajax calls, has been updated with the following features:

  • A new beforeSend callback is now available and fires just before the ajax call is performed
  • The plugin now can extend the ajax event to items injected in the DOM from a previous call. Basicaly using the options line is possible to attach a new ajaxContent instance directly to an item that will be load in a previous call. The second event is completely customizabile using a set of options with prefix "ex_"
  • BINDING: a new bind option is now avaialble. Basically anytime the binded form element change value the ajax call pass an updated parameter. This gives a wide range of new possibility for the plugin use.
Andrea has updated his demo page to show these new features in action.

 

Topics:

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}