Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Determining which element caused an event to occur

 
kanishk dewan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have 5 drop downs on a jsp. I have a single action which dynamically changes the contents of the drop downs depending on selection change in one of the drop downs.

The problem is, I want to determine which of the five drop down was changed. I need this info in the action file.

Please advice how to do this.

I dont think I need to provide any existing code for this.
And if I am missing any info please tell.


Thanks
Kanishk
 
Mohana Rao Sv
Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Ajax with Dojo plugin.
 
kanishk dewan
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohana,

Thanks for a quick reply.

I am using ajax with dojo plugin, but how does it enable me to know which element has caused the event action. I need to know this in my action class.

Thanks
Kanishk
 
Look ma! I'm selling my stuff!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!