phpcodec Posted September 1, 2008 Share Posted September 1, 2008 I have this code below in a chat script i have, it reports the response text fine, but when i want to know the length of the text it always shows 0 in firefox but in IE it shows the correct length, could you tell me whats wrong xmlHttp.responseText.length Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 1, 2008 Share Posted September 1, 2008 I have this code below in a chat script i have, it reports the response text fine, but when i want to know the length of the text it always shows 0 in firefox but in IE it shows the correct length, could you tell me whats wrong xmlHttp.responseText.length Not exactly. Could you show us more of the code? Quote Link to comment Share on other sites More sharing options...
corbin Posted September 1, 2008 Share Posted September 1, 2008 It might be xmlHttp.responseText.value.length, but I don't remember if response text is plain text or an object. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 1, 2008 Share Posted September 1, 2008 It might be xmlHttp.responseText.value.length, but I don't remember if response text is plain text or an object. It's plain text. Quote Link to comment Share on other sites More sharing options...
corbin Posted September 2, 2008 Share Posted September 2, 2008 Ah.... Ignore my suggestion then ;p. My second guess would be that the problem involves variable scope. Quote Link to comment Share on other sites More sharing options...
Ken2k7 Posted September 2, 2008 Share Posted September 2, 2008 Ah.... Ignore my suggestion then ;p. My second guess would be that the problem involves variable scope. Yup, that may be the problem. I wish I had more code to work with. :-\ 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.