You've probably come across this problem before. I have an Ajax site that has a response.write call in a c# page. This response is read on a javascript function as XMLHTTP.responseText.
It is returning what I want but there is an entire page of html after it. I have other places on the site where XMLHTTP.responseText is returned and there is no problem.
I think it is because previously on the button that calls the XMLHTTP.responseText there is another function that calls displays XMLHTTP.responseText.
I actually had this problem before and it fixed itself but I can't remember how.
I googled it and it said you can't get rid of it, you just have to parse out the part you want. Surely this can't be correct?
I could parse it but it's not reliable.
It is returning what I want but there is an entire page of html after it. I have other places on the site where XMLHTTP.responseText is returned and there is no problem.
I think it is because previously on the button that calls the XMLHTTP.responseText there is another function that calls displays XMLHTTP.responseText.
I actually had this problem before and it fixed itself but I can't remember how.
I googled it and it said you can't get rid of it, you just have to parse out the part you want. Surely this can't be correct?
I could parse it but it's not reliable.