problems with PHP and popup windows
Posted: Sat Jun 29, 2002 7:00 pm
I know this is probably simple javascript coding, but I cannot get a pop page to act correctly when I click the link for it. Although the popup page is displayed correctly the previous page changes with just the word object showing in it. The previous page needs to keep the original info in it. Any ideas? please find the following code. The $row[tag] is a varible which has the URL
PHP
print "<tr>";
print "<td bgcolor=\"$bgcolor\">$row[docdate]</td>";
print "<td bgcolor=\"$bgcolor\">$row[doctype_name]</td>";
print "<td bgcolor=\"$bgcolor\"><a href=\"#" onClick="window.open('$row[tag]','framemaster','width=500,height=525, scrollbars=yes,resizable=no')\">$row[description]</a></td>";
print "</tr>";
$i++;
PHP
print "<tr>";
print "<td bgcolor=\"$bgcolor\">$row[docdate]</td>";
print "<td bgcolor=\"$bgcolor\">$row[doctype_name]</td>";
print "<td bgcolor=\"$bgcolor\"><a href=\"#" onClick="window.open('$row[tag]','framemaster','width=500,height=525, scrollbars=yes,resizable=no')\">$row[description]</a></td>";
print "</tr>";
$i++;