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?
Asked
Active
Viewed 31 times
1 Answers
1
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.

Jean-Marc Le Roux
- 191
- 5
-
thanks! let's suppose I have create in my js an object. How can I add or bind it to the dom and so retrieve it in that way? – D.Giunchi Mar 23 '15 at 07:59
-
That's another question. StackOverflow etiquette is to create a separate question for each well... separate question :) And if my answer is ok for your first question, please mark it as such. – Jean-Marc Le Roux Mar 23 '15 at 08:44
-
done! http://stackoverflow.com/questions/29206609/binding-of-a-dom-element-to-a-javascript-variable – D.Giunchi Mar 23 '15 at 09:18