Description: 0.3.4 Cleaned up some code, now hosted on github/mpAjax.
0.3.2 Fixed a bug where jQuery automagically translating the 'data' parameter to an object (XMLDOM) would throw a JS error.
0.3.1 Fixed a bug where not specifying a "success" handler would cause a JS error.
0.3 This release is a significant change over 0.2.1. It now features full integration with the "ajaxSuccess" event binding functionality of jQuery. This means you can either specify your multi-part handlers per request (via "success"), or bind one or more global event handler(s) for the "ajaxSuccess" event.
The demo has now been updated to allow you to choose one of three types of handler specification (callback, single event handler, multiple event handlers). The most exciting part of the 0.3 release is the ability to split up your handlers into separate event bindings bound to different DOM objects. In the demo, for instance, it shows binding the "text/html" handler to the actual DIV that the HTML will go into. And the "application/json" handler is bound to the DIV where it's data will be dropped. Notice in the demo that the "this" binding for the "separate_event_handleList()" and "separate_event_handleData()" functions is bound to the respective DOM elements that the event was bound on. This makes code more semantic, simple, and sensible. It also gives you much more flexibility.
It should be noted that only the "success" handler and the "ajaxSuccess" event are supported for mpAjax functionality. The other callbacks/events, such as "complete"/"ajaxComplete", simply pass you the unparsed data as before.
Related: Event, Handler, handlers, Bound, quotsuccessquot, quotajaxsuccessquot, Binding, Release, Functionality, fixed, jquery, dropped, quotseparate event handledataquot, quotseparate event handlelistquot, quotthisquot, notice, quotapplicationjsonquot, Objects
O/S:BSD, Linux, Solaris, Mac OS X
File Size: 10.0 KB