[Dojo-interest] Stop loading tab with selectChild
Karl Tiedt
ktiedt at gmail.com
Mon Jan 29 06:14:44 MST 2007
Hehe, thats me, full of all kinds of Dojo info ;) and I was wrong, its
method invocation, not join point that gets passed to the connected function
function(mi) { } instead of function(evt){} is what is generally used,
obviously you can call it whatever you want var wise though ;)
-Karl
On 1/29/07, Jasper Huzen <Jasper.Huzen at carthago-ict.nl> wrote:
>
> Damn,
>
>
>
> That's easy; I tried code like that but I made a little mistake.
>
>
>
> I used the connect before instead of the around.
>
>
>
> Jasper
>
>
> ------------------------------
>
> *From:* dojo-interest-bounces at dojotoolkit.org [mailto:
> dojo-interest-bounces at dojotoolkit.org] *On Behalf Of *Karl Tiedt
> *Sent:* maandag 29 januari 2007 13:42
> *To:* dojo-interest at dojotoolkit.org
> *Subject:* Re: [Dojo-interest] Stop loading tab with selectChild
>
>
>
> 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
>
> _______________________________________________
> 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/a15bb41f/attachment.html
More information about the Dojo-interest
mailing list