PDA

View Full Version : Browser problem (Netscape)


szms
Sat 19th Jul '03, 1:34pm
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>

Stadler
Mon 21st Jul '03, 11:23am
I'm not sure, if this fixes it, but <textarea name = 'currentSelections' readonly="readonly" rows = "20" cols = "45"></textarea>should be <textarea name='currentSelections' readonly="readonly" rows="20" cols="45"></textarea>

Marco
Mon 21st Jul '03, 11:33am
If I were you, I wouldn't bother with Netscape 4 anymore. There are very few people out there still using it, not to mention it's horribly, HORRIBLY outdated. The actual rendering engine hasn't been touched since 1997 or so... more often than not, you'll have to put up with kludgy workarounds if you still want modern websites to work with NS4.

That said, if you're still intent on making ths page work with NS4: it might be that it's choking on the onclick attribute in the select element... try looking into that.

Zachery
Sun 27th Jul '03, 4:54am
update to NS7 :P