Hi ,
I am trying to create a list "ul" or "ol" dynamically .

 Successfully created container element for type “ol”.

emscripten::val 
 parent = document.call<emscripten::val>("createElement",std::string("ol"));

·        Child element creation is also successful for element type “li”

emscripten::val 
 chld = document.call<emscripten::val>("createElement",std::string("li"));

·        But adding child to parent is not happening.

      parent.call<void>("appendChild", chld);

//parent.call<void>("append", chldElement);

·        But the same child elements are successfully get added to 
container.
if (!container.isUndefined()) 

          container.call<void>("appendChild", chld);

please suggest what is wrong here.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/33450e1e-adc8-4746-9100-4f1cb1b7c5cfn%40googlegroups.com.

Reply via email to