Hi Marco,

Marco Vecchi wrote:
> Hello, I need to create a html page different every time you call my iframe 
> inside the window. 
> 
> My aim would be to insert the code as a html dell'iframe
> "iframe.setsource (" hello <div> </ div> ")" and not a URI.
> 
>  As possible to do so '?
No, you can't set HTML code as the source. If you only want to change 
the *content* of the iframe you can use some innerHTML magic do achieve 
this.

--snip--
var myIframe = new qx.ui.embed.Iframe(URL);
myIframe.addListener("load", function(e){
   this.getBody().innerHTML = "<div>Your HTML code</div>";
}, myIframe);
--snip--

cheers,
   Alex


>> Date: Mon, 12 Jan 2009 12:30:51 +0100
>> From: [email protected]
>> To: [email protected]
>> Subject: Re: [qooxdoo-devel] object iframe and applet-html
>>
>> Hi Marco,
>>
>> Marco Vecchi wrote:
>>> hello to everyone, 
>>>
>>>  I wanted to ask you can give in to a meal iframe code created by the 
>>> object and embed qooxdoo not necessarily a URL? 
>> If you want to set e.g. a blank page to the iframe just use
>>
>> --snip--
>> var myIframe = new qx.ui.embed.Iframe;
>> myIframe.setSource(qx.util.ResourceManager.toUri("qx/static/blank.html"));
>> --snip--
>>
>> This "blank.html" is shipped with the qooxdoo framework and with the 
>> help of the ResourceManager you can generate a valid URI to this resource.
>>
>> cheers,
>>    Alex

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to