PDA

View Full Version : Message Box Return Value



SimonMicheal
7 Mar 2007, 8:41 AM
How do i get a return value if the ok button or cancel button was clicked, when using a message box?

Thanks.

tryanDLS
7 Mar 2007, 8:49 AM
You can't just assign it to a variable e.g var rc = Ext.MessageBox(...). You have to provide a callback fn which takes the clicked button as an arg - refer to the example in the download.