Here is a version I wrote a while back.
--- On Wed 07/26, Erich Konicek < [EMAIL PROTECTED] > wrote: From: Erich Konicek [mailto: [EMAIL PROTECTED] To: [email protected] Date: Wed, 26 Jul 2006 19:08:46 +0200 Subject: [qooxdoo-devel] How to write a qooxdoo dialog like window.confirm()? Hi,Qooxdoo is great, really!But there is no dialog widget (or I didn't find it).I tried to create my own, but because I am a qooxdoo beginner, I failed.I simple want to have a widget the behaves like JavaScript window.confirm()but with a nicer appearance and variable content.My main problem is, how to wait until the user pressed a button in my modal windowto return which button was pressed to the caller (like this: var ok = window.confirm()).Is there a function to wait for an event (button's execute) like:function showDialog(...){ var w = qx.ui.window.Window(); // this is my dialog window w.set(....); w.add(...); // setup the modal dialog w.show(); // show the dialog w.waitForEvent("myEvent"); // wait until "myEvent" is fired (by the pressed button) return(value); // value is set by the pressed button}Or how do you mean, that I can solve my problem?Thanks for response,Erich-------------------------------------------------------------------------Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT & business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________qooxdoo-devel mailing [EMAIL PROTECTED]://lists.sourceforge.net/lists/listinfo/qooxdoo-devel _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web!
QxConfirm.js
Description: JavaScript source
------------------------------------------------------------------------- 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
