Hi Jesse,
What Cosmin would like (I think) is to be able to make a call to a _javascript_ function BEFORE the ajax call is made. That is a good time to put up a "processing" or "loading" message, etc.
I think what tacos provides (in alpha-7) for entry points in an udpateObject is
- beforeAjaxUpdate: called after the ajax response is received but before it is processed on the client
- ajaxUpdate: called as each response element is processed, a chance to do something special for each updateComponent
- responseComplete: a good time to hid the "processing" message
I think adding a beforeAjaxRequest method would be really helpful so we could do things like put the "processing" message up. What we are doing right now is connecting a method to get called before tacos.defaultLinkAction
(see code example below), but it seems like the beforeAjaxRequest method on an updateObject would be a _nice_ new feature to add. Maybe it could be called at the top of the defaultLinkAction or at a point where we could possibly cancel the ajax call if necessary?
function
connectWaitMethod() { dojo.event.kwConnect({type: "before",srcObj: tacos,
srcFunc:
"defaultLinkAction",targetObj:
this,targetFunc:
"showWait",once:
true}
); } dojo.addOnLoad(connectWaitMethod); Hope that helps you Cosmin (the showWait method would be replaced by whatever you need).- Michael
