Hey Antonio,

2011/4/1 Antonio Mancina <[email protected]>

> Hi all,
>
> I guess the subject says it all, but I'll explain it here a bit
> better.
>
> I have a tab widget on top of the page. I installed a callback
> on the tab selection. One of these tabs take some configuration
> parameters and I'd like to prevent the user from browsing away
> if he/she did not acknowledge a "Are you sure you don't want to
> save your changes?" dialog.
>
Of course, you can use modal WDialog in this case. But in this case
you thread will be blocked until modal WDialog instance exists.


> I wrote the snippet managing the dialog, but my currentChanged
> callback gets called soon after visually switching the tab, so
> I have to manually set the index back to the previous tab
> (triggering one more callback, but this is not a problem as of now).
>
> How shall I work this around?
>
> Thanks all!
> --
> Antonio Mancina
>
> P.S. One possibility could be of disabling all other tabs as soon
> as the user changes something in the interface and re-enabling
> them soon after the acknowledgement, but I would rather be less
> invasive.
>
Why not ? :-)

>
>
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>



-- 
// Dmitriy.
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to