Hi all , I'm new to Ajax programing.I have written a code in ajax in a jsp page but somehow httpReq.responseText is returning the entire page.That means alert(httpReq.responseText) is returning the whole html code.Please someone help me to get a solution for this .
SAPTARSHI CHAKRABORTY, please do us all a favor and modify your display name to not use all uppercase. It's very hard to read. Our eyes will thank you!
The reponse will contain whatever gets written to it. If your Ajax request hits a server-side resource that returns an entire page, that's what responseText will contain.
Be sure that your request is only setting what you want set into the response. [ November 01, 2007: Message edited by: Bear Bibeault ]
I do have the same problem. The reponse I got is whole html page not the time what I want. I am really new to ajax. This is my first sample program. Could you please some one point me to the good tutorials.
What are you requesting? Your server resource can deliver just what you want it to. I don't really understand the problem. If you don't want it to return an HTML page, don't give it the URL of the HTML page.
Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and most people will just go elsewhere. Please read this for more information.
You can go back and change your post ot add code tags by clicking the .
The ok bolded in the jsp is nothing but onkeyup. The website stopping me to post onkeyup.
my complete time.jsp code is
while i start type some thing in the text box i am getting the whole time.jsp content excluding the java commands. [ November 09, 2007: Message edited by: cathymala louis ] [ November 09, 2007: Message edited by: cathymala louis ]