loop execution of isc.warn()

Hi,

Here’s my example code:

for(var i=0;i<4;i++) isc.warn("test"+i);

My question is why does only the final dialog is appeared, where are the previous three dialogs? Every dialog should be shown and disappeared until user clicked the “OK” button, if not how can we call that dialog is a model dialog?

Many thanks!
landofdreams

The dialog used by warn(), say() and other APIs is a singleton - there is only one.

If you really want 4 modal dialogs on the screen at once, you can make your own via the isc.Dialog class. But from a UI perspective we’d recommend finding some other way to show the information.

Any suggestions on how to do it in UI???

Thanks in advance.