PDA

View Full Version : problem with layout and messageBox


janixams
09-19-2007, 10:58 PM
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

fay
09-20-2007, 03:45 AM
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/output/Ext.MessageBox.html#show

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

So something like this should do it:

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

janixams
09-20-2007, 10:00 AM
Thank you fay, I'll take this way.