Results 1 to 3 of 3

Thread: problem with layout and messageBox

  1. #1
    Ext User janixams's Avatar
    Join Date
    Aug 2007
    Posts
    80
    Vote Rating
    0
      0  

    Question problem with layout and messageBox

    Hello all:
    I have a problem one more time.
    Now, I want to close a layoutDialog when the user make click in the OK messageBox button. This is the code that I have...

    [PHP] my_form.addButton('Guardar', function() {
    my_form.submit({
    waitMsg: 'Guardando los datos...',
    url:'procesar.php',
    failure: function(form, action) {
    Ext.Msg.show({title:'Confirmaci

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    10
      0  

    Default

    If you take a look at the documentation for MessageBox you'll see that show() takes a handler that will be executed when you click on a button - http://extjs.com/deploy/ext/docs/out...eBox.html#show

    Also, look at the examples - http://extjs.com/deploy/ext/examples...g/msg-box.html

    So something like this should do it:

    [CODE]Ext.Msg.show({
    title:'Confirmaci

  3. #3
    Ext User janixams's Avatar
    Join Date
    Aug 2007
    Posts
    80
    Vote Rating
    0
      0  

    Thumbs up

    Thank you fay, I'll take this way.

Posting Permissions

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