1. #1
    Ext User janixams's Avatar
    Join Date
    Aug 2007
    Posts
    80
    Vote Rating
    0
    janixams is on a distinguished road

      0  

    Question problem with layout and messageBox

    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
    9
    fay will become famous soon enough fay will become famous soon enough

      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
    janixams is on a distinguished road

      0  

    Thumbs up


    Thank you fay, I'll take this way.

Thread Participants: 1