• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling a java-script function when the value of a Dojo auto-completer changes

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am trying to have a java-script function executed when the value of a Dojo auto-completer is changed by the user.

But when I use the usual onChange event handler in the dojo auto-completer for executing java-scripts, it has no effect i.e. the java scripts are not called.

I have used the java scripts to do the following 2 things :

1) Call a struts 2 action (by notifying a topic and then listening it elsewhere).

2) Change the value of a hidden field (to pass on some data to the action).

Although for notifying a topic there is another way :
using attribute --> valueNotifyTopic="topicName".
This will publish the topic and I can listen it elsewhere to call an action.
But this method does not allow me to change the value of the hidden field I mentioned.

This is the code:

Here the onchange attribute seems to have no effect.

Please advice.
Thanks!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic