Page 1 of 1

problems with PHP and popup windows

Posted: Sat Jun 29, 2002 7:00 pm
by lloydie-t
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++;

Posted: Sun Jun 30, 2002 4:34 am
by lloydie-t
OK chaps, I managed to sort it myself.

Code: Select all

print "<tr>";
    print "<td bgcolor="$bgcolor">$row&#1111;docdate]</td>";
    print "<td bgcolor="$bgcolor">$row&#1111;doctype_name]</td>";
    print "<td bgcolor="$bgcolor"><a href="java script:void window.open('$row&#1111;tag]','',
    'width=550,height=550');">$row&#1111;description]</a></td>";
    print "</tr>";
    $i++;