This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

auto complete

 
priya pratheepp
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
priya pratheepp
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes jquery...

but i got the solution.I wrongly put to "

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic