• 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
Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason


  • Subject: Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
  • From: Baiss Eric Magnusson <email@hidden>
  • Date: Tue, 31 Jan 2006 18:55:49 -0800

The WOForm wasn't loaded at the time I looked for it.

I needed to add the <onLoad> binding to <WOBody>, and have it call thru the test:

	function canIcallUpdate()
		if ( document.forms['transactionForm'] != null)
			updateSubCats();

For setting the <selectedIndex> within the JavaScript for the SubCategory popup I used a WOHiddenfield and in the JS did:

subCategoryPopup.selectedIndex = document.forms ['transactionForm'].hiddenSubCatIndex.value;

hello Art, thanks for your response, the below succeeds,
alert('updateSubCats-> ' + document.forms['transactionForm'].elements ['getCat'].value );
but this fails,
alert('updateSubCats-> ' + document.transactionForm.getCat.value );
this succeeds,
subCategoryPopup.selectedIndex = document.forms['transactionForm']. getCat.value;


On Jan 31, 2006, at 9:08 AM, Baiss Eric Magnusson wrote:

I have a WOPopupButton, inside a WOConditional, inside a WORepetition, in a middle sub-component WOForm, named <transactionForm>, with the bindings:

CategoryPopUp: WOPopUpButton {
	onChange = "updateSubCats()";
}
transactionForm: WOForm {
	multipleSubmit = true;
	name = "transactionForm";
}
EditBody: WOBody {
onLoad = "canIcallUpdate()";
}


TIA, ---- Baiss Eric Magnusson <http://www.Track-Your-Finances.com> <http://www.CascadeWebDesign.com>


_______________________________________________ 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: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
      • From: Art Isbell <email@hidden>
  • Prev by Date: Re: XCode corruption ?
  • Next by Date: Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
  • Previous by thread: ANN: NoxymoCore - The missing components of WebObjects.
  • Next by thread: Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
  • Index(es):
    • Date
    • Thread