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 .
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.
Is that all that's in your JSP? If it is, then there is no way that that JSP can render a complete HTML page. Why do you think that it does?
Joined: Nov 02, 2005
I am sorry, my complete html page is
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 ]