Use innerHTML. However, be aware that certain browser
<mumble>IE</mumble> will not fully expand innerHTML for certain
I'm not sure as to what Craig means, but basically if the thing you are
returning is HTML and not XML, then don't treat it as XML at all. Just
use xmlhttptransport.resonseText (notice responseText rather than
responseXML). This will simply get the plain text that the server
returned and not try to make any XML object out of it or anything. This
way you can just do something like:
var div = document.createElement('div');
div.innerHTML = client.responseText;
Then you need to insert the div element somewhere. Or if you're
updating a currently existing element it's even easier. But yeah, don't
bother with XML unless the data you're returning is XML.
If your problem was that you have some XML that you're returning and
there is some HTML embedded within that XML, then you have a different
problem. I'm not very XML savvy, but I thin what you do is get the XML
document by using xmlhttptransport.responseXML and then navigating to
the XML tag with the HTML inside it and using somethgin like nodeText
or maybe nodeValue or somethgin like that? Sorry, I don;t really know.
Hope this helps, though,
On Dec 14, 9:14 pm, "junee" <firstname.lastname@example.org> wrote:
return (node.textContent|| node.innerText|| node.Text);
thank you for reply.
i did it without problem. i think both Craig and AI suggested same
because of lack of knowledge i didnt get what Craig proposed,
fortunately AI explained it well
i did it as AI shown, thanks, it really took only two line change.
also Atul shown same. but i have only one div. so i did as AI.
when i have more tags, i think Atul's will be useful.
again thanks to all