This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java script in struts tags

 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am trying to call a java script function on change in struts html tags as




but function could not be called. if I call this function in other than struts tags like


, then it works fine what is problem in struts . Thanks
 
Sagar Rohankar
Ranch Hand
Posts: 2906
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Asheesh Nehra wrote:

When you see this tag on your browser, just look at the generated HTML code for the same and find out anything that messing up with the JS call.
 
Santhosh Reddy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:select property="inspection" style="width:150px" onClick="inspection();" >
 
Asheesh Nehra
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all for the reply but struts-html.tld define onclick instead of onClick ???
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the previous commenter suggested, check the rendered HTML.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic