[HTML_AJAX-devel] Append a chunk of XML to document
Joshua Eichorn
josh at bluga.net
Mon Dec 11 08:49:26 PST 2006
Matt Tyson wrote:
> Hello,
>
> I've got an ajax response that's xml and what I want to do is actually just
> append the XML to the document with elem.appendChild(ajaxElem). That seems
> to work, but the document isn't applying style classes that were set in the
> attributes of the ajaxElem.
>
> I can use document.createElement/textNode and recurse through the xml data
> to make this work, but it just seems there should be a way to simply slap
> the xml onto the DOM (it ALMOST works already).
>
> Any ideas?
>
> Thanks.
>
> Matt
>
I did something like this before for sure you need to use importNode
instead of appendChild, but I don't remember if there was any other
trick to it.
-josh
More information about the Html_ajax-devel
mailing list