Hi Brian, change that to instead be:
code:
function alert( msg )
{
moi.ui.alert( msg );
}
The one you have there right now has moi.ui. commandUI.alert() - commandUI is a way for a script to access the global object of the loaded .htm file, and doing commandUI.alert() means it is looking for a function alert() in that .htm file which is the very same function so it's calling itself over and over again in a recursive loop.
- Michael
|