WORadioButton seems not to accept onChange JS test ?
WORadioButton seems not to accept onChange JS test ?
- Subject: WORadioButton seems not to accept onChange JS test ?
- From: Erwin <email@hidden>
- Date: Fri, 22 Oct 2004 16:44:44 +0200
In a WOForm,
Form1: WOForm {
enctype = "multipart/form-data"; (I alo have a picture to be uploaded...)
multipleSubmit = true;
action = dataSubmitted;
name = "theForm";
}
I have a group of 2 WORadioButton to select a Translation need YES or NO
based on change, I need to select/deselect checkboxes , but
it seems that the onChange JS is not evaluated at all..
RadioButton1: WORadioButton {
selection = radioButtonSelection;
value = "no";
name = "translation";
onChange = "document.forms.theForm.lang1.value = 'no';document.forms.theForm.lang2.value = 'no';this.form.submit();";
}
RadioButton2: WORadioButton {
selection = radioButtonSelection;
value = "yes";
name = "translation";
onChange = "document.forms.theForm.lang1.value = 'yes';document.forms.theForm.lang2.value = 'no';this.form.submit();";
}
If
RadioButton1 is selected , both languages checkboxes are not selected
If
RadioButton2 is selected , first languag checkboxes is selected, second is not..
CheckBox1: WOCheckBox {
checked = isCheckbox1;
name = "lang1";
}
CheckBox2: WOCheckBox {
checked = isCheckbox2;
name = "lang2";
}
If I try to check
dataSubmitted no action is fired from the radiobuttons.... why ? where is the wrong step ?
thanks
Erwin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden