problems with PHP and popup windows

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
lloydie-t
Forum Commoner
Posts: 88
Joined: Thu Jun 27, 2002 3:41 am
Location: UK

problems with PHP and popup windows

Post 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++;
lloydie-t
Forum Commoner
Posts: 88
Joined: Thu Jun 27, 2002 3:41 am
Location: UK

Post 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++;
Post Reply