Hi Christian, I had yes something like this in mind. From my understanding it should work but either we miss something or there is a bug in the event layer.
Best Fabian > Something like this? > > var win = new qx.bom.Window.open(); > win.document.write("<html><body /></html>"); > win.document.close(); > > var root = new qx.ui.root.Application(win.document); > > // Create a button > var button1 = new qx.ui.form.Button("First Button", > "icon/22/apps/internet-web-browser.png"); > > // Add button to document at fixed coordinates > root.add(button1, > { > left : 100, > top : 50 > }); > > // Add an event listener > button1.addListener("execute", function(e) { > alert("Hello World!"); > }); > > qx.ui.core.queue.Manager.flush(); > > [ button1.getContainerElement(), button1.getContentElement() > ].forEach(function(el){ > var domEl = el.getDomElement(); > var listeners = > qx.event.Registration.getManager(domEl).serializeListeners(domEl); > qx.event.Registration.getManager(domEl).removeAllListeners(domEl); > qx.event.Registration.getManager(win).importListeners(domEl,listeners); > },this); > qx.ui.core.queue.Manager.flush(); > > It's not working, though ;-( > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG - Web Technologies Ernst-Frey-Straße 9 · DE-76135 Karlsruhe Telefon: +49 721 91374-6784 fabian.jak...@1und1.de Amtsgericht Montabaur / HRB 6484 Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver Mauss, Jan Oetjen Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel