Greetings fellow qooxdooers,
I'm integrating some stuff in qooxdoo like tinyMCE and Highcharts, and also
I'm working on a new version of HtmlArea (it requires some time though). To
integrate another js library i need always a div that act as a container for
the main object of the external library. I got a little problem with
getDomElement().
I create an qx.html.Element("div") and i add it into the qx.html.Element of
a widget (i get this with the getContainerElement() method).
Then i need to get the DOM Element of the qx.html.Element("div") and i use
getDomElement(). As the documentation says this method will returns the DOM
Element (if created) but i got always null.
So i've used the getDomElement when the "appear" Event of the widget is
fired, and doing this the DOM Element is created. BUT i would like to know
if there's another way to capture when the DOM Element is created, because
if i try to manipulate the external library BEFORE the appear event is fired
i still get a null (obviusly).
*So there's a way to capture a load event or a ready event for get the DOM
Element with getDomElement() ? Or a way to be sure that the DOM Element is
created in the contructor ?
*
Here's what is happening in pseudo language in my contructor.
| qx.ui.core.Widget | ::a class that extends the qx.ui.core.Widget class
|
(getContainerElement())
|
| qx.html.Element | :: Container qx.html.Element of the widget
|
| <- add(div = new qx.html.Element("div")) :: i create a new
qx.html.Element
|
(div.getDomElement()) :: if i call this in the contructor the DOM Element
it's still null (but if i use an appear event the Element is created)
|
null
Thank you all for your attention.
-----
La coincidenza non ha madre.
--
View this message in context:
http://qooxdoo.678.n2.nabble.com/The-correct-use-of-getDomElement-tp6993052p6993052.html
Sent from the qooxdoo mailing list archive at Nabble.com.
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel