Hi,
every widget is based on a container- and a content-element.
So you do something like this:
var content = widget.getContentElement();
var domEl = content.getDomElement().
domEl.innerHTML = "...";
Be careful using the dom element, because you don´t know the time, die
DOM-Element is created. So maybe it´s there, but maybe not, because it´s
rendering is not synchronous to your code.
Did you already try to use the qx.ui.embed.Html Widget ? This could be
more simple way of doing that...
HTH,
Rob.
>>> "Seldaiendil D. Flourite" <[email protected]> 7/4/2011 1:02
>>>
Hi, I have a little problem with Qooxdoo, I've inherited from widget to
create a component works like a command line terminal, it means you can
type text on a input and it will be added to a log with the server
response.
The problem is than with just a few lines (100 or 150) the time needed
to add more HTML is double than when it started. The way I use to add
HTML was first to create a qx.ui.basic.Label widget and do
myLabel.setValue(myLabel.getValue() + html);
It was so slow so then I change to add a new label each time there is
something to add
var label = new qx.ui.basic.Label(html);
label.setRich(true);
myLog.add(label);
But it stil slow, is there any way I can access the DOM element to edit
innerHTML property? if not which is the correct way to do this in
Qooxdoo?
Thanks,
---
Seldaiendil
Web Developer
[email protected]
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel