Hi there,
I need some advices about DOM manipulation .
I want to push some piece of html code to document with  jQuery and
JavaScript in general.(ie. I want to create widget containing close
and minimize buttons and contents block with only calling for example $
('#widget-div').createWidget() ).
I think if I will do it by creating elements and adding attributes and
nodes to it, it can harm performance of rendering, so I'm now doing it
by creating string containing markup of widget, then appending it to
element I want ( look at http://pastie.org/553503 , I put my code
there ) , but it looks dirty and hard readable.

Can you suggest me anything ? Any help appreciated.
Thanks in advance.
Mushex Antaranian.

Reply via email to