[Dojo-interest] Stop loading tab with selectChild

Karl Tiedt ktiedt at gmail.com
Mon Jan 29 05:41:59 MST 2007


I beieve you could do that by using an "around" advice on the selectTab
function.... I can never remember the specifics on it, but basically it
allows you to intercept the call to a function and manipulate the arguments
being passed to it or kill the call completely... (by not calling the
proceed(); method of the method join point passed by the event system.

-Karl

On 1/29/07, Jasper Huzen <jasper.huzen at carthago-ict.nl> wrote:
>
>
> I try to add a security system into my webapp. When users change some form
> value the page may not reload without asking the user if he really wants
> to
> load another page, without saving his changes.
>
> For the whole application it is working (closing browser, clicking links
> and
> so on). But i need to do the check when changing tabs too.
>
> I connected an function on the selectChild event of the tab. This is all
> working.
>
> Is there a possibilty to do a check in my function, and stop loading of
> the
> tab (when check fails)?
> --
> View this message in context:
> http://www.nabble.com/Stop-loading-tab-with-selectChild-tf3134776.html#a8686032
> Sent from the Dojo mailing list archive at Nabble.com.
>
> _______________________________________________
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
> http://dojotoolkit.org/mailman/listinfo/dojo-interest
>



-- 
-Karl Tiedt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dojotoolkit.org/pipermail/dojo-interest/attachments/20070129/44326e24/attachment.html


More information about the Dojo-interest mailing list