Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 Dojo- how to change this form to use "onkeyup"

 
Richard Vagner
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have implemented a search function which uses a form like this:


What I want is to change it into a <s:textfield...> and uses "onkeyup" so that the search result is displayed while using types.

Of course, this is not working:


Form what I googled, "onkeyup" can be used with "dojo.event.connect" but I could not figure out how to use it.

Can someone shed some light on this?

Thank you so much,
Rich

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <s:autocomplete.../> tag may be what you're looking for.

Things like "onkeyup" are JavaScript events--they require JavaScript functions, not URLs.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic