PDA

View Full Version : Display more then one messagebox?



JavascriptParrot
4 Jul 2013, 11:42 AM
Hello,

I'm using a error handler to catch clientside script errors. I want to show a messagebox with the error information. Now I'v got two error message, one from Ext direct and one from clientside because the rest of the script fails. It shows up two messagebox but the first one is closed when the second is opened.

How can I show more then one messagebox? Do I have to create my own messagebox?

Thanks!

slemmon
8 Jul 2013, 11:07 AM
Ext.Msg is a reusable messagebox instance, but you can create single instances yourself like:


new Ext.window.MessageBox().alert('Status 1', 'Changes saved successfully.');
new Ext.window.MessageBox().alert('Status 2', 'Changes not saved successfully.');

JavascriptParrot
9 Jul 2013, 2:22 AM
Thanks, I thought too complicated!