ds111 Posted November 28, 2008 Share Posted November 28, 2008 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? Quote Link to comment Share on other sites More sharing options...
corbin Posted November 29, 2008 Share Posted November 29, 2008 What exactly is the response text in both browsers? Quote Link to comment Share on other sites More sharing options...
ds111 Posted November 30, 2008 Author Share Posted November 30, 2008 In both browsers, the text appears as "Hello " and a lot of unprintable characters that look like spaces in an alert box. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 30, 2008 Share Posted November 30, 2008 Something is probably messed up in the PHP script then. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.