I have been following a topic about passing data to a client window,
that was here some time ago, but i can't get it to work, any suggestions ?
The function is in the HTML part of the page :
<html>
<head><title>Web Database Sample Index</title>
<SCRIPT LAGUAGE="JavaScript">
function new_window(idsel)
{
window.open('info-basis.php3?id=idsel','Client','width=300,height=350,directories=no,location=no,menubar=no,status=no, toolbar=no,resizable=no,left=340,top=150,screenX=150,screenY=1 50')
}
</SCRIPT>
</head>
The call is made from a line created with PHP
$event = $r["event"];
echo '<tr><td><a href="javascript:new_window()">', $item_regel_font_start, $event, $item_regel_font_stop, '</a></td><td>', $item_regel_font_start, $city, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $location, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $times, $item_regel_font_stop, '</td></tr>';
The above works in that the window pops up, but as soon as i put data in the call like :
echo '<tr><td><a href="javascript:new_window(', $event, ')">', $item_regel_font_start, $event, $item_regel_font_stop, '</a></td><td>', $item_regel_font_start, $city, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $location, $item_regel_font_stop, '</td><td>', $item_regel_font_start, $times, $item_regel_font_stop, '</td></tr>';
i will see -javascript:new_window(My Data)- in the status line of netscape,
but the client window won't open.
Thanks in advance
Carel