Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    innerHTML substitute?

    Is there by chance an innerHTML DOM substitute? Did a bunch of looking through the w3c site, and couldn't find any. But I may just be missing it somewhere.


    James
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Not until DOM3 Load and Save do you actually find the ability to progmatically call the XML parser and serializer on strings and dom nodes.

    No browser implements DOM3 Load and Save either (unless you count the document.load() method).

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Unless your thinking of things like createElement, setAttribute and appendChild ?

  • #4
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    No, was wondering if there was something akin to createTextNode (believe that's the method). For HTML since createTextNode only inputs text ( including any HTML coding you may have in it..)

    If not that's fine innerHTML it is. It might as well be standard hehe


    Leithakor
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    SourceForge has a neat little utility script called XML for <SCRIPT> at http://xmljs.sourceforge.net/

    Using that, you could write a function to parse an XHTML string and create HTML elements via document.createElement(), document.createTextNode(), etc. If you were feeling industrious.

  • #6
    New Coder
    Join Date
    Dec 2002
    Location
    Wichita, KS
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm interesting. Cool link. Thanks I may do that.
    James
    Leithakor vanwa ilya eile, lat vanwa leithakor.
    Translatation: Freedom over all else, Honor over Freedom


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •