• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
WORadioButton seems not to accept onChange JS test ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: WORadioButton seems not to accept onChange JS test ?
      • From: Kaj Hejer <email@hidden>
  • Prev by Date: [NEWBIE] Need some help getting started with a local dev environment
  • Next by Date: Apple KBase as a web service
  • Previous by thread: Re: [NEWBIE] Need some help getting started with a local dev environment
  • Next by thread: Re: WORadioButton seems not to accept onChange JS test ?
  • Index(es):
    • Date
    • Thread