Widget Message Box
I have created a widget in Dashcode to run in an iBooks.
The code in the main.js calls an 'alert' which displays a message box as follows:
try
{
if(Test !== 99999999) throw "Input an amount:";
}
catch(err)
{
errorMsg(err)
}
//the Error Message function:
function errorMsg(error)
{
txt="Input Error:\n\n";
txt+= error + "\n\n";
txt+="Click OK to continue..\n\n";
alert(txt);
}
This code works with the exception that in iBooks author the processed Error produces a Box with a Title like this:
"x-iBooks-th://6D8CF691-8F1B-4DCE-8828-ED2D7D24B544"
Input Error:
Input an Amount:
Click OK to continue..
Is there anyway within the jScript that you can either delete the title or change what is displayed?