[thelist] JavaScript/Ajax - responseText and IE question

Mark Baldwin mark.baldwin at attensa.com
Thu Mar 2 12:48:28 CST 2006


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 <peter at easylistbox.com> wrote:
>
>> I had that problem with ELB a while back.
>>
>> Try request.ResponseText for IE.
>>
>> And yes, I'm serious.
>
> http://www.pixelmech.com/
> http://www.crossandthrone.com/
>
>
> Professor Rumford: 'But I still don't understand about hyperspace.'
> The Doctor: 'Well, who does?'
> K9: 'I do.'
> Doctor: 'Shut up, K9!'
>
>
> -- 
>
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !




More information about the thelist mailing list