DHTML window widget - problem selecting "select" options in firefox
1) DHTML dynamic window
2) http://www.dynamicdrive.com/dynamici...ndow/index.htm
I've posted it as a question at the help forum, but decided it is probabaly a bug, so I'm posting also here.
I'm using the dynamic window with ajax.
The window content includes a select element. Only the first 20 elements can be selected. scrolling down the options, and selecting for example the first SEEN option, will result with selecting the first option in the list (in oppose to the first option seen after scrolling down).
The problem occurs on FireFox 1.5.0.11 but not on IE7.
Here's my code:
test.php:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- DHTML windows -->
<link rel="stylesheet" href="src_3rdParty/client/windowfiles/dhtmlwindow.css" type="text/css" />
<script language="Javascript" type="text/javascript">
function openWindow()
{
// create the path for registerPage.php
var path = location.href;
var index = path.indexOf("test.php");
path = path.substr(0,index)+"windowBox.php";
var dynamicWindow = dhtmlwindow.open('windowBox', 'ajax', path, 'dynamic window', 'width=650px,height=400px,center=1,resize=0,scrolling=0');
return false;
}
</script>
<script type="text/javascript" src="src_3rdParty/client/windowfiles/dhtmlwindow.js">
/***********************************************
* DHTML Window Widget- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<!-- end of DHTML windows -->
</head>
<body>
<button onClick="openWindow();" >open window</button>
</body>
</html>
window content - windowBox.php:
<?php
echo '<select name="BirthYear" size="1"></br>';
for ($i =1900; $i<2006;$i++)
{
echo '<option value = "' . $i .'">'.$i.'</option></br>';
}
echo '</select>';
?>