Ability to pass a javascript callback method to the Ad-Hoc designer which would execute after save

We are currently adding the Ad-Hoc designer to our project, and we have noted that we do not have a way to know in the browser when a save has completed.  What we would like is to be able to pass a javascript function to the Ad-Hoc designer which would be executed after a save has completed and could be passed success/fail information.



An event being triggered with pass/fail information would also suit our needs, if that is more easily accomplished.