Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > Web

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 01-23-2001, 04:05 PM
Brian
Guest
 
Posts: n/a
Change select from other select


I am able to change what is selected in one select box when changing the selection
in another select box using the onChange event in IE, but it does not work
in Netscape. By passing
a value to the following line of code, it does nothing in Netscape:

document.general.SelectObjectName.options.value = passedValue;

How can I get this to work in Netscape and IE?

Thanks,

Brian
Reply With Quote
  #2  
Old 01-24-2001, 03:48 PM
Russell Jones
Guest
 
Posts: n/a
Re: Change select from other select

Just a guess, but it looks like you're missing an index value. The code
should be:
document.general.SelectObjectName.options[index].value = passedValue;


"Brian" <bminisi@accessgroup.org> wrote in message
news:3a6de423$1@news.devx.com...
>
> I am able to change what is selected in one select box when changing the

selection
> in another select box using the onChange event in IE, but it does not

work
> in Netscape. By passing
> a value to the following line of code, it does nothing in Netscape:
>
> document.general.SelectObjectName.options.value = passedValue;
>
> How can I get this to work in Netscape and IE?
>
> Thanks,
>
> Brian



Reply With Quote
  #3  
Old 01-26-2001, 12:06 PM
Frederiek
Guest
 
Posts: n/a
Re: Change select from other select


The correct syntax is:
document.formName.selectName.options[document.formName.selectName.selectedIndex].value

where you have to change "formName" and "selectName" to respectively the
names of your form and select box.

cya
Frederiek


"Russell Jones" <arj1@northstate.net> wrote:
>Just a guess, but it looks like you're missing an index value. The code
>should be:
>document.general.SelectObjectName.options[index].value = passedValue;
>
>
>"Brian" <bminisi@accessgroup.org> wrote in message
>news:3a6de423$1@news.devx.com...
>>
>> I am able to change what is selected in one select box when changing the

>selection
>> in another select box using the onChange event in IE, but it does not

>work
>> in Netscape. By passing
>> a value to the following line of code, it does nothing in Netscape:
>>
>> document.general.SelectObjectName.options.value = passedValue;
>>
>> How can I get this to work in Netscape and IE?
>>
>> Thanks,
>>
>> Brian

>
>


Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 11:25 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.