javascriptminko

minko get object from dom


I create an object in my javascript function, and I'd want to retrieve it in c++ from dom class for change some values, but I can access only by id, tag or class that are part of css syntax. Is there the possibility to get my object and set values or send to him those value?


Solution

  • First of all I think you should always get DOM elements by id or class name because IMHO it's the most versatile way to get things from this kind of tree.

    Anyway, just like any other DOM Minko provides the childNodes and parentNode properties if you want/have to browse the tree :

    When you've found the right DOM element, you can then use the other DOM methods to get its content, set its value, etc... Everything you need should be in the AbstractDOM base class definition.