Hi,

you can only do that if the iframe content is loaded from the same 
domain as your qooxdoo application. You can then do the following (not 
tested, might contain typos or bugs):

yourIframe.addEventListener("load",function(){
    this.getContentWindow().setContainerWindow(yourWindow);
},this);

in your iframe, add the following script:

<script>
    function setContainerWindow(cw){
       window._containerWindow = cw;
    }
    function getContainerWindow(){
       return window._containerWindow;
    }

    ... your code ...

    getContainerWindow().close();


</script>

Hope this helps...

Chritian


pwoods3781 schrieb:
> I have a qx.ui.window.Window containing a qx.ui.embed.Iframe.  When the
> user is done with the task in the Window/Iframe I would like to provide a
> "Close" link that will close the Window.  Can loading into the Iframe
> source something like the following work?
>
> <head>
> <script type="text/javascript">
> [code to access a function in my main app that .close()'s the window]
> </script>
> ...
>
> Any help would be appreciated.
>
> Paul
>
>
> -------------------------------------------------------------------------
> 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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to