OZONE Asylum
Forums
DHTML/Javascript
Get the html code inside an xml tag
This page's ID:
30388
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
Looks like what you need is to instanciate a [i]new XMLSerializer() [/i]and call the [i]serializeToString( node )[/i] method on it with the CODE node as argument, then inject the result into the innerHTML of the destination element. Did you choose to have the HTML as a text value in a [i]<[CDATA[ [/i]section [i]]]> [/i]you would only need to grab the nodeValue of the CODE node. In a way it's nice to have the markup of your page in the XML as it means it is valid XML, but unless I miss something this whole XML + innerHTML injection approach doesn't feel right. Do you mind shedding some light on what it is you're doing and the reason for this approach ? Oh and the HTML markup itself is meh. A TABLE for layout ... seriously ? Hope that helps, [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_neon88x31.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_teapot.png[/img][/sigrotate][/url]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »