arnoschaefer
Programmer
Hi,
Firefox does not correctly redraw a table when a table cell is expanded after receiving an onchange-event from a select box in the same table row (see example code).
Is there a workaround to force a redraw?
Best Regards,
Arno
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
<html>
<head>
<title>test</title>
<script type="text/javascript" language="JavaScript">
function addvalue () {
target = document.getElementById ("foo");
target.appendChild (document.createTextNode ("some text"));
target.appendChild (document.createElement ("br"));
}
</script>
</head>
<body>
<table border="1">
<tr>
<td>
<form action="#" method="post">
<select name="test1" onchange="addvalue();">
<option value="1">foo</option>
<option value="2">bar</option>
</select>
</form>
</td>
<td width="100" id="foo">
</td>
</tr>
<tr>
<td>
<form action="#" method="post">
<select name="test2" onchange="addvalue();">
<option value="1">foo</option>
<option value="2">bar</option>
</select>
</form>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>
Firefox does not correctly redraw a table when a table cell is expanded after receiving an onchange-event from a select box in the same table row (see example code).
Is there a workaround to force a redraw?
Best Regards,
Arno
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
<html>
<head>
<title>test</title>
<script type="text/javascript" language="JavaScript">
function addvalue () {
target = document.getElementById ("foo");
target.appendChild (document.createTextNode ("some text"));
target.appendChild (document.createElement ("br"));
}
</script>
</head>
<body>
<table border="1">
<tr>
<td>
<form action="#" method="post">
<select name="test1" onchange="addvalue();">
<option value="1">foo</option>
<option value="2">bar</option>
</select>
</form>
</td>
<td width="100" id="foo">
</td>
</tr>
<tr>
<td>
<form action="#" method="post">
<select name="test2" onchange="addvalue();">
<option value="1">foo</option>
<option value="2">bar</option>
</select>
</form>
</td>
<td>
</td>
</tr>
</table>
</body>
</html>