Click to See Complete Forum and Search --> : Browser problem (Netscape)


szms
07-19-2003, 11:20 AM
Hi there!!

I am using Netscape 4.8 for browsing the following code but it's not working but at the same time it's working in IE, Galeon and Mozilla. Coule you plese let me know what I have to to in order to work it properly with Netscape.

Thank you.


<html>

<head>
<title>Option Selection and Submission...</title>
<script type="text/javascript">
<!--
function updateTextBox(selectObj, textBoxObj)
{
var index = selectObj.selectedIndex;
var selection = selectObj.options[index].text;

textBoxObj.value += selection + "\n";
}
// -->
</script>
</head>

<body>
<h1>Multiple User Selection Submission</h1>
<hr/>

<p>Make your selections below:</p>
<form name="selection_form">

<?php
$Domain_Name[] = "Cricket";
$Domain_Name[] = "Soccer";
$Domain_Name[] = "Table Tennis";
$Domain_Name[] = "Chess";
?>
<br>
<select size="5" name="user_choice" onclick="updateTextBox(this, currentSelections)">
<?php
foreach ($Domain_Name as $Existing_Item) print " <option value=\"$Existing_Item \">$Existing_Item</option>";
?>
</select>

<hr/>

<textarea name = 'currentSelections' readonly="readonly" rows = "20" cols = "45"></textarea>
<input type="submit" value="Submit" name="Submit"/>
</form>


</body>

</html>

gil davis
07-19-2003, 01:13 PM
<select size="5" name="user_choice" onclick="updateTextBox(this, currentSelections)">Try this instead:
<select size="5" name="user_choice" onclick="updateTextBox(this, this.form.currentSelections)">

szms
07-19-2003, 02:08 PM
Still having the same problem. Cannot select any item from Menu list into the text Area using Netscape.

szms
07-20-2003, 08:36 AM
I found one solution but not a very satisfactory one. If I use the latest version of Netscape for example 7.1 it's works perfectly. But still I want to know why it's not working in 4.7. Can any one tell me which least version of Netscape I need to use to activate this.

Thank you.