XWidgetSoft Forum
https://bbs.xwidget.com/

HELP: XWidget alert function alternative - CLOSED
https://bbs.xwidget.com/viewtopic.php?f=8&t=3426
Page 1 of 1

Author:  yereverluvinuncleber [ July 29th, 2013, 11:38 am ]
Post subject:  HELP: XWidget alert function alternative - CLOSED

Alerts - it seems the XWidget alert function does not allow anything more than a simple alert.

I was proposing to use the alert function:
var answer = alert("blah, blah, blah - proceed?", "Open Browser Window", "No Thanks");
if (answer === 1) {
openURL("http://www.blah-blah.co.uk");
} else {
something else;
}

Do you have a good alternative to this method?

Your help appreciated.

Author:  qiancang [ July 29th, 2013, 7:31 pm ]
Post subject:  Re: XWidget alert function alternative

if (confirm2("Open Browser Window"))
{
openURL("http://www.blah-blah.co.uk");
}
else
{
something else;
}

Author:  yereverluvinuncleber [ July 30th, 2013, 2:55 am ]
Post subject:  Re: XWidget alert function alternative

Thankyou, that was very useful and quick!.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/