Hi,
I have the following problem; hope someone can solve it:
When you click on the "ok" button, a new html page should open (in the same frame); the choice of your <select> box determines which page should open...
Everything seems ok in IE, but not in NS.
Is someone familiar with this problem and knows how I can solve it?
Thanks in advance
JeroenB
<html>
<head><title>Untitled</title>
</head>
<script language="javaScript">
function additem()
{
document.items.action = document.items.mediatype.options[document.items.mediatype.options.selectedIndex].value;
document.items.submit();
}
</script>
<body>
<form method="POST" name="items" action"">
<table border="1" cellpadding="1" cellspacing="0" width="375">
<tr>
<td width="65" align="left"><font class="text01">media type</font></td>
<td width="310"><select name="mediatype" size="1" maxlength="">
<option value="photograph.html">Photographs</option>
<option value="plan.html">Architectural Drawings</option>
<option value="motionpicture.html">Motion Pictures</option>
<option value="soundrecord.html">Sound Recordings</option>
<option value="3dmodel.html">3D Models</option>
<option value="article.html">Articles</option>
<option value="book.html">Books</option>
<option value="nonpublished.html">Non-Published</option></select></td>
</tr><tr>
<td width="65" align="left"><font class="text01">section</font></td>
<td width="310"><input type="text" name="section" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"> <font class="text01">pavilion</font></td>
<td width="310"><input type="text" name="pavilion" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"><font class="text01">unit</font></td>
<td width="310"><input type="text" name="unit" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"> </td>
<td width="310"><input type="button" value=" ok " OnClick="additem()"></td>
</tr>
</table>
</FORM>
</body>
</html>
I have the following problem; hope someone can solve it:
When you click on the "ok" button, a new html page should open (in the same frame); the choice of your <select> box determines which page should open...
Everything seems ok in IE, but not in NS.
Is someone familiar with this problem and knows how I can solve it?
Thanks in advance
JeroenB
<html>
<head><title>Untitled</title>
</head>
<script language="javaScript">
function additem()
{
document.items.action = document.items.mediatype.options[document.items.mediatype.options.selectedIndex].value;
document.items.submit();
}
</script>
<body>
<form method="POST" name="items" action"">
<table border="1" cellpadding="1" cellspacing="0" width="375">
<tr>
<td width="65" align="left"><font class="text01">media type</font></td>
<td width="310"><select name="mediatype" size="1" maxlength="">
<option value="photograph.html">Photographs</option>
<option value="plan.html">Architectural Drawings</option>
<option value="motionpicture.html">Motion Pictures</option>
<option value="soundrecord.html">Sound Recordings</option>
<option value="3dmodel.html">3D Models</option>
<option value="article.html">Articles</option>
<option value="book.html">Books</option>
<option value="nonpublished.html">Non-Published</option></select></td>
</tr><tr>
<td width="65" align="left"><font class="text01">section</font></td>
<td width="310"><input type="text" name="section" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"> <font class="text01">pavilion</font></td>
<td width="310"><input type="text" name="pavilion" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"><font class="text01">unit</font></td>
<td width="310"><input type="text" name="unit" size="30" maxlength="40"></td>
</tr><tr>
<td width="65" align="left"> </td>
<td width="310"><input type="button" value=" ok " OnClick="additem()"></td>
</tr>
</table>
</FORM>
</body>
</html>