[thelist] works in IE5.0 but not in Opera/NN

Matthias Ritzkowski Matt at grndwtr.com
Mon May 6 16:08:02 CDT 2002

Thanks jeff!

I also had to reference through document.myForm (oops I had not declared a
form before) so now it works in Mozilla and Opera. Phew!!

This is a result of working too long on a strictly IE Intranet project!


-----Original Message-----
From: .jeff [mailto:jeff at members.evolt.org]
Sent: Monday, May 06, 2002 16:35
To: thelist at lists.evolt.org
Subject: RE: [thelist] works in IE5.0 but not in Opera/NN


> From: Matthias Ritzkowski
> on this page, I retrieve values for a list box
> (lstAllAuthors) from the DBserver.  After the list box
> is created, I create navigation buttons, to allow for
> different actions.
> The function goAender works in IE, but does nothing in
> Opera and NN. Does anybody know why?

yup.  two things are likely culprits.

> var ind = lstAllAuthors.options.selectedIndex;

selectedIndex is a property of the select object, not the options.  try this

var ind = lstAllAuthors.selectedIndex;

> var idx = lstAllAuthors.options(ind).value;

options is an array.  ie is the only one that lets you access array elements
with parenthesis instead of square brackets.  try this instead:

var idx = lstAllAuthors.options[ind].value;

good luck,


jeff at members.evolt.org

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