[Dojo-interest] Stop loading tab with selectChild
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.
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
> load another page, without saving his changes.
> For the whole application it is working (closing browser, clicking links
> 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
> Is there a possibilty to do a check in my function, and stop loading of
> tab (when check fails)?
> View this message in context:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dojo-interest