|
Posted by dkirkdrei on 11/09/06 16:45
I am trying to open a small new window using javascript and pass a php
variable onto the new window and this is really being a pain. I believe
that this is possible but everything that I have tried so far has not
worked. The relevant code that I am usiing is below. Everything works
like it should except the new window contains nothing. Anyone familiar
with this? Any help would be greatly appreciated.
<?
if ($yes_no == "Y"){
?><td><a href="javascript:newwindow('<?print ($aster);?>')"
title='<?echo "$aster"?>'>Notes</a></td><?
} else { ?><td> </td><?
}
?>
</tr>
<?
}
odbc_close($connect);
?>
<SCRIPT language="JavaScript">
<!--hide
function newwindow()
{
window.open('cust_parts_notes.php','Notes','width=300,height=200,resizable=yes');
}
//-->
</SCRIPT>
</body>
</html>
The referenced page 'cust_parts_notes.php' only contains:
<?
echo "$aster";
?>
Navigation:
[Reply to this message]
|