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="javascrip t:newwindow('<? print ($aster);?>')"
title='<?echo "$aster"?>'>Not es</a></td><?
} else { ?><td> </td><?
}
?>
</tr>
<?
}
odbc_close($con nect);
?>
<SCRIPT language="JavaS cript">
<!--hide
function newwindow()
{
window.open('cu st_parts_notes. php','Notes','w idth=300,height =200,resizable= yes');
}
//-->
</SCRIPT>
</body>
</html>
The referenced page 'cust_parts_not es.php' only contains:
<?
echo "$aster";
?>
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="javascrip t:newwindow('<? print ($aster);?>')"
title='<?echo "$aster"?>'>Not es</a></td><?
} else { ?><td> </td><?
}
?>
</tr>
<?
}
odbc_close($con nect);
?>
<SCRIPT language="JavaS cript">
<!--hide
function newwindow()
{
window.open('cu st_parts_notes. php','Notes','w idth=300,height =200,resizable= yes');
}
//-->
</SCRIPT>
</body>
</html>
The referenced page 'cust_parts_not es.php' only contains:
<?
echo "$aster";
?>
Comment