• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic