ah so no functionality for before sending the request ...

i didn't get to try this yet , i've worked arround it so far , but it's a must .

i know tacos has a way to define showing a loading message , but i was
never able to get it to work yet ... still the before functionality is
a must

i'm thinking , this can also be done with the dojo event ?

On 2/3/06, Michael Waluk <[EMAIL PROTECTED]> wrote:
> 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
>


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to