This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes STRUTS and JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "STRUTS and JavaScript" Watch "STRUTS and JavaScript" New topic
Author

STRUTS and JavaScript

Sam Smoot
Ranch Hand

Joined: Apr 18, 2002
Posts: 238
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...


CNSS/NSA Infosec Professional,<br />Software Engineer
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
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

Joined: Apr 18, 2002
Posts: 238
WOW! That actually worked (after I put it in)
Thanks Jason!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: STRUTS and JavaScript