On Mon, May 19, 2008 at 12:31 PM, kanugula <[EMAIL PROTECTED]>
wrote:
>
> Hello,
>
> I am trying to block the user input while Rpc call is in progress.
>
> I am trying some simple generic solution rather than disabling submit
> button
> until RPC response arrives.
>
> I am wondering whether qx.ui.popup.Popup which I am using to set AJAX
> status
> indicator can block the user from resubmiiting the form?
>
> Like when a new Qooxdoo Window is opened using setModal(true), the user
> cannot edit the underlying parent window like javascript alert() box. How
> can get this behaviour using Popup?
>
> Or do you think passing a Popop to Modeled Window will help me? But I don't
> want to see a window for RPC progress status.
>
> Your suggestion is appeciated.
>
The short answer is to use the Finite State Machine (qx.util.fsm.*). There
are features in it specifically for this purpose (blocked events). I'm away
right now and unable to provide more details at the moment for the long
answer, but I believe that one of the RPC tests in demobrowser demonstrates
this. Look carefully at the documentation for
qx.util.fsm.FiniteStateMachine, qx.util.fsm.State and qx.util.fsm.Transition
for lots of detail. Ping me in a couple of days if you haven't figured it
out.
Cheers,
Derrell
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel