Jump to content

AjaxResponseText length problem


ds111

Recommended Posts

Hi.

 

  I am using responseText to get a reply from a PHP Script. In php script, I echo "Hello". I expect responseText.length to be 5, but i am getting 15 on Firefox, and 315 on Internet Explorer. The first five characters of responseText is Hello, but the rest are not printable. In PHP i am using

header("Content-Type: text/plain; charset=UTF-8");

 

What is the problem? And why is FF and IE different?

Link to comment
https://forums.phpfreaks.com/topic/134692-ajaxresponsetext-length-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.