Results 1 to 2 of 2

Thread: MessageBox.alert OK onclick?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
      0  

    Default Answered: MessageBox.alert OK onclick?

    Is it possible to attach a function to the onclick of the OK button in a MessageBox.alert window? I need to have it re-open the MessageBox that it just replaced.

    Code:
    if (e.exists) {
                Ext.MessageBox.alert('Create new array', 'That array already exists. Please provide a unique name.');
            } else {
                this.fireEvent('create', this, { Name: workflowName, ArrayName: workflowName });
                this.setActiveRecord(null);
            }

  2. Of course I managed to overlook the callback part in the doc. Never mind!

  3. #2
    Sencha User
    Join Date
    Nov 2012
    Posts
    18
    Answers
    3
    Vote Rating
    0
      0  

    Default

    Of course I managed to overlook the callback part in the doc. Never mind!

Posting Permissions

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