Ajax Improvements
Ajax Returns
Wrap content in a handler that indicates how the ajax call should handle the content. For example:
<div data-handler="update-title">
<div ..> title contents </div>
</div>
An ajax return can have multiple handler actions. Others include:
update-pageErrors - Update the page errors div with nested content
update-page - Update page contents with nested content
update-component - Update component contents with nested content
update-view - Update entire view contents with nested content
show-lightbox - Show the nested contents in a lightbox
redirect - Perform a browser redirect to the new url
Handlers can have different parameters that are read, for example:
<div data-handler="update-component" data-componentId="u99">
<div data-handler="redirect" data-redirectUrl="http://kuali.org">