Looking through the code, my assumption is that it has to do with qx.event.Registration.getManager(). The event manager is chosen according to the global "window" object (line 78). This is really tricky, because the event target is instantiated in the parent window, and not in the child window. I wonder if an additional argument could be added to addListener(), i.e. "addListener("type",handler,this,window), so that the correct window context could be figured out by the getManager() method.
panyasan wrote: > > > > Fabian Jakobs wrote: >> >> I would try it from the outside of the iframe. Just load a blank html >> file into the iframe. Then you can add a root widget to the iframe >> >> var iframeRoot = new >> qx.ui.root.Application(qx.bom.Iframe.getDocument(iframeElement)); >> >> than place your widgets into the the iframe root widget. Still I'm not >> sure how well this will work. I'd be very interested in your results. >> > > I didn't try the Iframe, but experimented with the native window. This is > how far I got: > > Loag this in the playground (current trunk): > > 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!"); > }); > > The button is correctly displayed, but the event handler is not called. I > guess the event handling is the real issue - there was a mesage on the > list a long time ago on this. > > Best, > > Christian > > > > -- View this message in context: http://n2.nabble.com/Native-Window-again-tp3723200p3734324.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel