Re: WORadioButton seems not to accept onChange JS test ?
Re: WORadioButton seems not to accept onChange JS test ?
- Subject: Re: WORadioButton seems not to accept onChange JS test ?
- From: Kaj Hejer <email@hidden>
- Date: Fri, 29 Oct 2004 23:11:31 +0200
Just a wild guess... Is the right event to use here onClick?
-Kaj :)
On 22. okt 2004, at 16.44, Erwin wrote:
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:
email@hidden
This email sent to email@hidden
_______________________________________________
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