> My main problem is, how to wait until the user pressed a button in my
> modal window
> to return which button was pressed to the caller (like this: var ok =
> window.confirm()).
This is not possible in JavaScript, since all JavaScript code is
single-threaded.
You may only specify a callback method:
var onExit = function(userPressedYes) {
if (userPressedYes) {
...
}
};
var dlg = new ConfirmDialog("Do you want to exit", onExit);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel