on Dec 1st, 2006DOMTool - create DOM statements

Ok, there is a lot of buzz around javascript dom based effects and addtion of ajax replies via the innerHTML statement, well, here is a tool that makes it that much more simpler for you. DOMTool  V1.0 Muffin Research Labs. All you have to do is give the html code of the dynamic information and the tool will create the DOM statments.

So your input would look like

<div id=”chat”> This is a test </div>

And the output will be

  var div1=document.createElement(’DIV’);
div1.setAttribute(’id’,'chat’);
var txt1=document.createTextNode(’This is a test\n’);
div1.appendChild(txt1);

Awesome eh? check it out

Trackback URI | Comments RSS

Leave a Reply