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++;
problems with PHP and popup windows
Moderator: General Moderators
OK chaps, I managed to sort it myself.
Code: Select all
print "<tr>";
print "<td bgcolor="$bgcolor">$rowїdocdate]</td>";
print "<td bgcolor="$bgcolor">$rowїdoctype_name]</td>";
print "<td bgcolor="$bgcolor"><a href="java script:void window.open('$rowїtag]','',
'width=550,height=550');">$rowїdescription]</a></td>";
print "</tr>";
$i++;