> QxHtml can handle all HTML content. Wherever it comes from.
> 
> You must be sure that you add your windows to a parent widget (eg. the 
> QxClientDocument)
> 
> This should be clear as all the examples do it the same way.
> 
> You can also use QxNode instead of QxHtml if you want to use an existing 
> node which has an html node ID.
> 
> Sebastian

Hi Sebastian,

I found that the issue is just the small amount of time Qx takes to create the
DOM node.

If I do:

var window = new QxWindow(...);
var content = new QxHtml("<DIV id='foo'></DIV>");
window.add(content);
doc.add(window);
window.show();
// alert("!");
var elem = getElementById("foo");
alert("elem=" + elem);

elem will be null.  
But if I uncomment the first alert, then elem will not be null.


I can replace the first alert with code that polls for elem every 100ms until it
exists.

Simon




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to