Click to See Complete Forum and Search --> : Problem with Netscape


szms
07-19-2003, 12:28 PM
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 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>

PeOfEo
07-19-2003, 01:25 PM
View your source code in ie and show us what the server is out putting for that, that is for those of us that do not know php.

szms
07-19-2003, 01:44 PM
For who does not have any idea about PHP try the following code. Let me tell you waht is my oblective from this code.
I am trying to select ites from a menu list and then those selected items will be apeared in a text box consequently. It' works IE, Galeon and Mozilla biut does not work in Netscape.

Any suggestion!!!


<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 + ", ";
}
// -->
</script>
</head>

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

<p>Make your selections below:</p>
<form name="selection_form">
<select size="5" name="user_choice" onclick="updateTextBox(this, currentSelections)">
<option>One -- I</option>
<option>Two -- </option>
<option>Three -- am</option>
<option>Four -- </option>
<option>Five -- a</option>
<option>Six -- </option>
<option>Seven -- bad</option>
<option>Eight -- </option>
<option>Nine -- man</option>
<option>Ten -- !</option>
</select>

<hr/>

<input type="text" readonly name="currentSelections" size="100" value=""/>
<input type="submit" value="Submit" name="Submit"/>
</form>


</body>

</html>

PeOfEo
07-19-2003, 08:58 PM
my guess would be is its hawken a lugie on this code
<script type="text/javascript">
<!--
function updateTextBox(selectObj, textBoxObj)
{
var index = selectObj.selectedIndex;
var selection = selectObj.options[index].text;

textBoxObj.value += selection + ", ";
}
// -->

szms
07-20-2003, 09:31 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.

PeOfEo
07-20-2003, 08:19 PM
4.5 and 4.7 well any of the 4 version are just god aweful from my experience. I would try it on 5.