Re: [SOLVED]: WOPopupButton element is not accessible from JavaScript for some reason
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: Art Isbell <email@hidden>
- Date: Tue, 31 Jan 2006 17:32:35 -1000
On Jan 31, 2006, at 4:55 PM, Baiss Eric Magnusson wrote:
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;
I can't explain why the second alert() statement failed because one
can refer to a form by its name, transactionForm, or its forms array
member, forms['transactionForm'], just as one can refer to an element
by its name, getCat, or its elements array member, elements
['getCat']. Maybe the transactionForm didn't exist when the second
alert() statement failed.
Aloha,
Art
_______________________________________________
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