I have a window.Window with an Iframe. As the user works with the Iframe contents, several URLs can be loaded in turn. Eventually, when the user closes the Window, I think I want to dispose of the Iframe so that when the Window is re-opened again later, the Iframe will reload the original URL.
My failing attempt looks like this: var uploadWin = new qx.ui.window.Window("Upload"); uploadWin.addEventListener("changeActive", function(e) { if (uploadWin.isActive()) { var uploadIFrame = new qx.ui.embed.Iframe(); uploadIFrame.setSource( "http://192.168.1.16/gsk/cgi/upload-form.html"); uploadIFrame.addEventListener("load", function(){ this.getContentWindow().setContainerWindow(uploadWin);}, uploadIFrame ); uploadWin.add(uploadIFrame); } else { // TODO: Figure out how to get a handle on uploadIFrame from // here. uploadIFrame.dispose(); // This doesn't work. } }); uploadWin.addToDocument(); When the window closes I get an error that uploadIFrame has no properties. I'm assuming this means I'm out of context. How do I get a handle on the Iframe? Danke im Voraus! BTW, many thanks to Christian and Steven for helping me get the Window to close via a link inside the Iframe! -- Paul R. Woods [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel