Topic: bug with inserting rows in a table for IE6
I am using xajax 0.5 RC1
I try to insert a new row on the top of a table. it works fine in firefox but not in IE 6.
The following script is working for firefox 3.0.1. but does produce an error in IE 6.0.2900.
How can i avoid this error?
The error is:
ERROR: ExecuteCommand (#0, ):Error: Unknown Runtime Error
Code: PHP
require ('../xajax_core/xajax.inc.php');
$xajax = new xajax();
$xajax->configure('debug', true);
$xajax->configure('javascript URI', '../');
function addRow()
{
$objResponse = new xajaxResponse();
$objResponse->prepend('tb','innerHTML','<tr><td>n</td><td>neu</td></tr>');
return $objResponse;
}
$reqSetColor =& $xajax->registerFunction('addRow');
$xajax->processRequest();
echo '<?xml version="1.0" encoding="UTF-8"?>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>xajax example</title>
<?php $xajax->printJavascript();?>
</head>
<body style="text-align:center;">
<table border="1">
<tbody id="tb">
<tr>
<td>1</td><td>zeile</td>
</tr>
</tbody>
</table>
<button onclick='xajax_addRow()' >add Row</button>
</body>