How to create INPUT element from JS?

Hello All

I tried to create INPUT element from JS, but I couldn't do it (I don't see text in HDiSim).

My test project: http://slil.ru/23567285

How can I do it

P.S.

HDiSim v0.1



Answer this question

How to create INPUT element from JS?

  • soloryan

    This post might be helpful in explaining the modification of the DOM in HDi

    http://blogs.msdn.com/ptorr/archive/2006/11/07/live-vs-loaded-dom.aspx




  • efarook

    See Z.13.1.1.3 of the spec
    Using the XML DOM API's to alter the DOM does not immediately affect the live loaded document,. You need to call document.load() after you add the element.

    Although, that should trigger the setMarkupLoadedHandler, so you will probably want to modify your script so that the modification doesn't happen in OnLoad_





  • How to create INPUT element from JS?