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. The problem is the
variable $aster resides in a cell of a table that displays notes
pertaining to a specific item and depending on the item the notes could
change. Each table may have anywhere from 1 to 10 notes and they are
all different. I had everything working fine opening another window
without javascript but a smaller window would suffice. As of now, all
of the notes are the same and it is always the last set of notes in the
table. Anyone familiar with this? Any help would be greatly
appreciated.
<SCRIPT language="JavaScript">
<!--hide
function newwindow
{
window.open('cust_parts_notes.php?aster=<?print
($aster);?>','Notes','width=400,height=400,resizab le=yes');
}
//-->
</SCRIPT>
<tr bgcolor=white><td align="center"><?echo "$qty";?></td><td><?echo
"$partnum";?></td><td><?echo "$desc1 $desc2"?></td>
<?
if ($yes_no == "Y"){
?><td><a href="javascript:newwindow'<?print ($aster);?>')"
title='<?echo "$aster"?>'>Notes</a></td><?
} else { ?><td> </td><?
}
?>
</tr>
<?
}
}
odbc_close($connect);
?>
</body>
</html>