Hi thron7,

Thx, that helps  :)
Even I don't understand why it doesn't work (and still doesn't work), I
get the window when I call "blank" or a not existing site even in my own
app.
So the problem must be a rights problem as you already wrote. The page
that is loaden and the js are from the same server, but I think I will
test around with the urls a little bit.

Greetings,
  Leander

thron7 wrote:
> Leander,
>   
>> So only the window doesn't work
>>   
>>     
>
> One other thing: If you are running into a cross-domain situation,
> getContentWindow() will also return null. So make sure you load the
> iframe document from the same domain as your main index.html.
>
>   
>> Did anyone has a example skelleton to post here where I can see it
>> working? I also think that the problem is in my code, the code of
>> qooxdoo looks good, but I don't find the problem. A complete executable
>> example could help. Thx if anyone takes the time to write this :)
>>   
>>     
>
> This is a drop-in replacement of the 0.7.1 skeleton Application.main
> routine:
>
>     main : function()
>     {
>       this.base(arguments);
>
>       // Define alias for custom resource path
>       qx.io.Alias.getInstance().add("custom",
> qx.core.Setting.get("custom.resourceUri"));
>
>       var hb = new qx.ui.layout.VerticalBoxLayout();
>       hb.addToDocument();
>       hb.set(
>       {
>         width : "100%",
>         height: "100%"
>       });
>
>       var iframe = new qx.ui.embed.Iframe();
>       this.iframe = iframe;
>       hb.add(iframe);
>       iframe.set(
>       {
>         width : "100%",
>         height: "1*"
>       });
>       iframe.setSource("g.html");
>       //iframe.setSource("http://qooxdoo.org";);
>       iframe.addEventListener("load", function (e)
>       {
>         alert(this.iframe.getContentWindow());
>       }, this);
>     },
>
> And this is the content of g.html, which in the same directory as the
> main index.html:
>
> <html>
> <head>
>   <title>
>     Hello World!
>   </title>
> </head>
> <body>
>   <h3>
>     Hello World!
>   </h3>
> </body>
> </html>
>
> Try experimenting loading qooxdoo.org instead.
>
> =Thomas
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to