Jquery-ui-ajax-machine is a project mainly written in JavaScript, it's free.
Ajax machine is a state machine for your page. It allows all the different ajax events and results to be configured in one place instead of strewn around in multiple places.
A jQuery UI widget to declaratively perform a chain of ajax events. Visit the project home page for more information.