[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Select box (.value) failes in Netscape

Posted on 2002-07-10
6
Medium Priority
?
225 Views
Last Modified: 2010-05-18
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

I have created a web page which works fine with IE. but not with Netscape.
Can somebody tell me why netscape always alerts Null ?




<html>
<head>
     <title>Untitled</title>
</head>

<body>
<form>
<select name="list1" onchange="alert(form.list1.value)">
<option value="position1">option 1</option>
<option value="position2">option 2</option>
</select>
</form>
</body>
</html>
0
Comment
Question by:chunky1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 33

Accepted Solution

by:
knightEknight earned 150 total points
ID: 7144358
onchange="alert(this.options[this.selectedIndex].value)">
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7144360
that will work in IE and NS.

also, if you want the long way ( reference thru the form )

onchange="alert(this.form.list1.options[this.form.list1.selectedIndex].value)">
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7144369
and to answer your question ... for a SELECT object, this.value is a Microsoft Specific (non-standard) way to reference the selected value.  Netscape does not support the value property for the SELECT object itself ... but instead only for the OPTIONS in the SELECT.  IE supports both.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 7212821
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&
0
 
LVL 1

Author Comment

by:chunky1
ID: 7213860
Sorry this question has been left. I forgot it!
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 7214120
only a B?  what more did you want?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question