Forum Moderators: open
I'm looking for the same functionality as the Dialogs.confirm("message","ok","cancel") function in WMLScript... but using javascript instead.
At this point, I'm not sure that this is possible for javascript alone. Any assistance or direction would be greatly appreciated.
It's unfortunate, especially as the values of the buttons can be ambiguous under certain circumstances: "Would you like to cancel your order? " [ OK ][ Cancel ]
The only alternatives I can think of are IE only. For instance, VBScript has a wider range of control over modal dialogs, and it's not so tricky to wrap up a call to a VBS button (with their complicated binary '&' parameters) in a sensible JS function.
Your JS function could launch a VBS confirm dialogue for 70% of your users, while the rest get the normal.
There is also a modal dialog window. Yahoo have started using one. I don't know whether they are modal in the sense that all script stops.