PDA

View Full Version : Problem with Netscape


szms
Sat 19th Jul '03, 1:36pm
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. Could you plese let me know what I have to do 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>

Steve Machol
Sat 19th Jul '03, 1:53pm
Please do not double-post:

http://www.vbulletin.com/forum/showthread.php?p=497188#post497188