Forum Moderators: open

Message Too Old, No Replies

Getting the Value of a Select List in NS

Why oh why doesn't it work?

         

txbakers

3:45 am on Dec 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why doesn't Netscape accept the form.select.value argument and return the selected value????

For netscape to return a value from the list I need to name the select to the value of my URL variable and use a Submit button. What a pain!

is there an easier way?

tedster

4:29 am on Dec 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Does this work for you?
[netmechanic.com...]

txbakers

4:56 am on Dec 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks again tedster. So Netscape is getting the value from the selectedIndex array instead of a direct property. Archaic.

That did work, even with the list. So now it is a one-click operation instead of the double click. I'd prefer it to still be dblClick in IE, but the whole select list (four on the page) are heavily intertwined with ASP code. I would have to document.write two sets.

Maybe not - I might be able to just d.w the first line....

Thanks again. Care to look at another page which won't load at all in NS? It's the link from this one.

txbakers

5:15 am on Dec 4, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This works the best for me:

<% var bc = Server.CreateObject("MSWC.BrowserType") %>
<% if (bc.browser == "IE") { %>onDblClick="getStudent(this)">
<% } else { %>onChange="getStudent(this)">
<% } %>