Hi Jean-Noël,
On Wednesday 24 June 2009 Jean-Noël Rivasseau wrote:
> Hi and thanks for all your help; but you still dont fully understand my
> issue :)
>
> I only have a reference to the DOM element I want to find a child on. In
> practice, that element may not have any ID...
> So a query like "#myElement > .MyTargetClass" is not possible, because the
> base element has not any ID (I gave it one on the examples to try to make
> it clearer, but it probably confused you instead). As I said, I only have a
> reference to the DOM element, not its id nor class (it may not have any).
Suppose you have a reference to a DOM element and you want to know if this DOM
element has a direct child element with the class "MyTargetClass"
--snip--
qx.bom.Collection.query("> .MyTargetClass", d)
--snip--
This little snippet assumes you have stored your reference to the DOM element
at the variable "d".
I really hope I have fully understood now :)
cheers,
Alex
------------------------------------------------------------------------------
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel