Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

STRUTS and JavaScript

 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to validate a check box to see if it is turned on, and If so, pop up an alert box for the user to understand that checking the option will cause a delay in processing due to volume. Since my JSP page is under HEAVY struts management, I can't reference the checkbox by name (document.name.chkbox.checked) because Struts uses the "name" variable to load in another bean when you put it in either the form or the checkbox tag...
HELP!
p.s. I would like to post the code, but the software won't allow it... It doesn't like onClick for some reason...
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would something like this work for you?

Replace the word "oncluck" in the above code. UBB is being a pain.
[ January 16, 2003: Message edited by: Jason Menard ]
 
Sam Smoot
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WOW! That actually worked (after I put it in)
Thanks Jason!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic