[thelist] Problem with Mozilla AJAX response

Matt Warden mwarden at gmail.com
Sun Aug 20 11:19:19 CDT 2006

On 8/20/06, Mohsen Saboorian <mohsens at gmail.com> wrote:
> I've noticed that with FF, you cannot see the HTML content of an AJAX
> response while traversing over its child elements.
> The only way you can see the innerHTMLish value is to use responseText
> instead of responseXML.

Why would innerHTML work on XML content? If it works in IE, don't you
think that's the problem?

If you want the content to be treated as XML, then use responseXML. If
you want to "view source", then you must do the same thing as you do
when you want to view source on a web page: view it as if it were
plain text. In this case, you do this by looking at responseText.

Matt Warden
Cleveland, OH, USA

This email proudly and graciously contributes to entropy.

More information about the thelist mailing list