PDA

View Full Version : How to display multiple alerts?



Nesha
18 Nov 2010, 3:25 AM
Hi,
I tried to generate multiple alerts using for loop.
For example if my alert messages are
1.Alert 1
2.Alert 2
3.Alert 3
i got "Alert 3" message only.
Can any one help me to get multiple alerts on a same event.

msinn
18 Nov 2010, 8:00 AM
Do you need that for debugging?
I use

console.log('my alert message');
for the firefox extension firebug and in addition you can set also breakpoints in your loop.

or maybe is that what you are searching for:
http://www.globalguideline.com/JavaScript_Guide/JavaScript_Examples.php?JScript=JavaScript_Alert_In_Multiple_Lines

danguba
18 Nov 2010, 9:03 AM
I you R trying to achieve this by using Ext.Msg.alert method it wont work since Ext.Msg is singleton so each time U call its alert method it uses same object and just changes the text

matt617
18 Nov 2010, 10:31 AM
you woudl need to extend Ext.Window if you want to have multiple floating alert style boxes but it sounds like you want debugging. i would look into firebug - http://www.getfirebug.com