
Biedubbeljoe - 2006-10-03 10:45:04
Hi,
I have a PHP script and the piece below gets data from the sql database and show this in a table.
If I click on the graphic 'graphic.bmp' in a cell, the popup window appears. So far so good BUT: the error: on every cell in the table I click on the popup window appear. It seems that the javascript doesn't end till it 'hits' the next ID in a cell. Any suggestion?
-------------------------------------
if ($data->bijzonderheden <> null)
echo "<a href=\"javascript:void(0);\" ".
"onClick=\"window.open('pop_mobject_details.php?id=$data->id','Details',
'width=550,height=200,".
"scrollbars=yes,alwaysRaised=yes,resizable=yes,left=1-,top=10')\">
<td align=\"center\"><font size=2 color=\"$geel\">
<img src=\"graphic.bmp\"></font></a></td> ";
else
echo " <td align=\"center\"><font size=2 color=\"$rood\"><B>i</B></font> </td> ";
--------------------------------------