Re: Putting DIV wrapper around all code in body



Guys, thanks a lot.
It really solved my problem. I was trying approach with "appendChild"
but totaly forgot that when first child is moved into div than next
child is now firstChild :-). I will test this solution with innerHTML
also to compare speeds.
Thanks a lot.
.



Relevant Pages

  • Re: Putting DIV wrapper around all code in body
    ... I was trying approach with "appendChild" ... but totaly forgot that when first child is moved into div than next ... also to compare speeds. ... requests of Firefox just went up a whole lot. ...
    (comp.lang.javascript)
  • Re: Simplicity in HTML structure
    ... > div in div in div layered up to six deep, lots of classes and spans all ... if you intend to do some paragraph styling like "literary paragraphs". ... you would not need id="maintext" if you used the pattern ... to a div element that is a child of body (or the first child of body). ...
    (comp.infosystems.www.authoring.html)
  • Re: What obvious thing am I missing?
    ... Just what do you think the first child of your "sales_margin" div is? ... you can assign a data property (or a nodeValue one ... Duh. ...
    (comp.lang.javascript)
  • Get text content of a div with YAHOO Dom.getFirstChild(div)?
    ... I have a simple test page with a "div" that just contains text ... I assigned a var to the "div" element, ... However, when I execute the line to get the first child, the result is ...
    (comp.lang.javascript)
  • Re: insert element at the end of a node
    ... it inserts the new td's definitely as first child. ... my table html looks like this, before inserting with appendChild: ... <TBODY> ... appendChild as last child to a tr element. ...
    (comp.lang.javascript)