[thelist] JavaScript/Ajax - responseText and IE question
Peter Brunone (EasyListBox.com)
peter at easylistbox.com
Thu Mar 2 12:54:22 CST 2006
And if that doesn't work, try text/html or text/xml.
Peter
From: Mark Baldwin mark.baldwin at attensa.com
If toString isn't working, you might try explicitly setting the
content type header in your php code:
header("Content-type: text/plain");
and see if that gets you anywhere.
Mark
On Mar 2, 2006, at 10:33 AM, Tom Dell'Aringa wrote:
> If you mean capital R - didn't work. Turns out I overstated the
> problem. This is the deal:
>
> when response.responseText comes back, I can alert it as a valid
> string, even in IE. But when I go
> to apply that as innerHTML - that is when I get the error - so this
> is failing:
>
> response = request.ResponseText; <-- this is okay
> m = document.getElementById('msg');
> m.innerHTML = response; <-- this errors out!?!?!
>
> For some reason IE does not like the string of text? I tried
> toString() with no luck...
>
> --- Peter Brunone wrote:
>
>> I had that problem with ELB a while back.
>>
>> Try request.ResponseText for IE.
>>
>> And yes, I'm serious.
More information about the thelist
mailing list