Results 1 to 3 of 3

Thread: MessageBox.wait

  1. #1

    Wink MessageBox.wait

    When I run
    Code:
    MessageBox messageBox = MessageBox.wait(a, b, c);
    [Then execute code.]
    messageBox.close();
    Then the code is executed before the waiting dialog is rendered. It should, of course, be executed afterwards.

    How can I implement this correctly, not making it a race condition?

    (What events does a Dialog fire after render? Any methods I can override in Dialog that will make this work? I already tried overriding both afterRender and onRender. Events are incredibly poorly documented! )

    Please, help!

  2. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976

    Default

    It probably wont work like that. As the browser is in a hang and does not update the UI.

    Try something like this:

    Code:
    MessageBox messageBox = MessageBox.wait(a, b, c);
    DeferredCommand.addCommand(new Command(){
    public void execute(){
    [Then execute code.]
    messageBox.close();
    }
    });

  3. #3

    Default

    Thank you very much!

Similar Threads

  1. [FIXED] [1.1.3] MessageBox.wait bug
    By jpnet in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 24 Nov 2008, 7:10 AM
  2. WaitConfig for MessageBox.wait()
    By kouphax in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 20 Mar 2008, 7:51 AM
  3. Problem with MessageBox.wait
    By rjanos in forum Ext 1.x: Bugs
    Replies: 1
    Last Post: 14 Jun 2007, 9:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •