OT: JS checkboxes

2004-09-10 Thread Damien McKenna
OT again. I'm attempting to write a small bit of JS code to ensure that if a checkbox is selected that a) another checkbox is deselected and b) an alert is displayed, and then when the form is submitted it will also verify
function myValidate(f)
{
if(f.checkbox.LCQ_SIGNUP.checked

Re: OT: JS checkboxes

2004-09-10 Thread S . Isaac Dealey
The first two issues I see are here: mySelect(f);" 1) Any attribute in your (x)html beginning with "on" is an event-handler, and doesn't require the predecessor "_javascript_:", so the attribute should read (The "_javascript_:" string is used in the href attribute of a link for instance because

Re: OT: JS checkboxes

2004-09-10 Thread Damien McKenna
On Sep 10, 2004, at 10:16 AM, S. Isaac Dealey wrote: > 1) Any attribute in your (x)html beginning with "on" is an > event-handler, and doesn't require the predecessor "_javascript_:", so > the attribute should read > OK, that worked well. > 2) I don't see where a value is being set for a global v

Re: OT: JS checkboxes

2004-09-10 Thread S . Isaac Dealey
> On Sep 10, 2004, at 10:16 AM, S. Isaac Dealey wrote: >> 1) Any attribute in your (x)html beginning with "on" is >> an >> event-handler, and doesn't require the predecessor >> "_javascript_:", so >> the attribute should read > > OK, that worked well. >> 2) I don't see where a value is being set