[thelist] Another Netscape problem

Jagjeet Hayer Jagjeet.Hayer at softwareag.co.uk
Tue Aug 22 10:26:20 CDT 2000


Ok, here goes.  The select box is dynamically populated from a servlet. I
then need to retrieve one of these values depending on what the user selects
from another select box which is displayed on the screen.

So I want the first select box to be hidden because it is there purely as a
data element.

So my problems have been that IE and Netscape use different ways of hiding
fields, and that IE and Netscape use different DOM paths to retrieve the
information because I thought of using layers as a way to solve the issue
with Netscape.

So I am using code like:

if (vertype()=="ie")
{
	fieldvalue =
document.form1.select1.options[document.form1.select2.selectedIndex].value;
}

if (vertype()=="nav")
{
	fieldvalue =
document.ilayer1.document.layer1.document.form1.select1.options[document.for
m1.select2.selectedIndex].value;
}


But this doesn't work.

So its all a bit of a mess at the moment.

Don't know if this helps or has just confused even more.

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of dave gray
> Sent: 22 August 2000 16:08
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Another Netscape problem
>
>
> not sure what specifically you're trying to do, but could you have a
> javascript array of values and then have your script put the correct value
> into a hidden field when whatever happens? more info about the problem
> you're trying to solve would definately help us help you.
>
> HTH a bit,
>
>  -dave
>
>
> On Tue, 22 Aug 2000, Jagjeet Hayer wrote:
> > Can anyone tell me how to access a select box in Netscape? The
> complication
> > too this is that the select must be hidden.
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>






More information about the thelist mailing list