| Author |
auto complete
|
priya pratheepp
Ranch Hand
Joined: Apr 02, 2008
Posts: 59
|
|
Hi friends, I am doing one auto complete program using jsp,js-query.. It is working fine .When i type the first letter the corresponding datas are displaying. When i select or click the data i can't able to select that and disply that in the text box.getting the error of can not find rs.. Please help code where i am getting problem is html code where fill method is Thanks in advance
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56179
|
|
Originally posted by priya pratheepp: I am doing one auto complete program using jsp,js-query..
Do you mean jQuery?
getting the error of can not find rs..
What is rs? Where is it defined? It would be much more helpful to show the exact error message rather than a paraphrasing.
out.println("<li onClicks='fill(\" + \" + rs.getString(1)+ \"+ \");'>"+ rs.getString(1) +"</li>");
Why on earth are you using out.printlin inside a JSP to emit markup? The whole purpose of a JSP to allow you to use template text so that you don't have to generate markup inside Java strings. From looking at this I assuming that the HTML markup you are sending to the browser may not be correct. Do a View Source in the browser and check the HTML and JavaScript that the JSP is generating. [ May 11, 2008: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
priya pratheepp
Ranch Hand
Joined: Apr 02, 2008
Posts: 59
|
|
yes jquery... but i got the solution.I wrongly put to " thanks
|
 |
 |
|
|
subject: auto complete
|
|
|