Thanks Daniel,

I believe that the widgets are not transformed into HTML as they are added
to the container instead it is done at a later stage.
Can you please explain when the widgets are transformed into actual DOM?

Regards,
Chirag

> Hi Chirag,
>
> if you want to check the HTML the embed is created with, you can listen
> for the HTML embed's "appear" event. If the HTML is modified by calling
> qx.ui.embed.Html.setHtml() later, you can also add a listener for the
> "changeHtml" event.
>
>
> Regards,
> Daniel
>
> Chirag Patel schrieb:
> > Hello,
> >
> > I am facing a issue with Html embed. The Html embed is created with some
> > html and it is added to the container.
> > The code is as below:
> > --------------------------------------------
> > var htmlString = "<div id='divid'>Added using Html embed </div>";
> > var embed = new qx.ui.embed.Html(htmlString);
> > this.getRoot().add(embed);
> >
> > alert(qx.bom.Collection.query("#divid").length);
> > --------------------------------------------
> >
> > Most of the time I get count as 0. However sometimes I get count as 1
> > How do I know whether an element is added to the DOM or not?
> >
> > Is it possible?
> >
> > Thanks
> > Chirag
> >
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to