In the radio button, I have the following onklick event:
Originally posted by Kim Kantola: spelling onklick wrong on purpose, javaranch seems to be unable to parse it here
If you are working in HTML, you should have a good working knowledge of HTML Entities. With them, you can easily defeat the posting filters: onclick onclick onclick.
Are you 100% certain that document.form1._selectedUnit is correctly referencing the element? In any case, that's a really old-fashioned way of doing things. You should be assigning an id to the element and using document.getElementById() to reference the element.
Make that change to eliminate that as a source of error and if you're still having difficulties post back and we'll pursue it further. [ August 04, 2008: Message edited by: Bear Bibeault ]
I guess there is a difference between being able to get by the onclick. filters and having the patience to!
I had previously been using document.getElementById(), and then switched to using the control name specifically (_selectedUnit) to try to make things simpler and rule out the fact that maybe I wasn't operating on the correct element, so that can rule out that problem.
Originally posted by Kim Kantola: I had previously been using document.getElementById(), and then switched to using the control name specifically (_selectedUnit) to try to make things simpler and rule out the fact that maybe I wasn't operating on the correct element, so that can rule out that problem.
You've clearly gone in the wrong direction. Fetching the element by id is exact. The document.form mechanism is fragile and should be avoided.
but am still curious if anyone knows any reason why that might have not worked.
Well, since we don't have access to that code, who can say?
Joined: May 17, 2001