Page 2 of 2

Posted: Fri Jan 30, 2004 2:13 pm
by John Cartwright
oh and the problem occurs when I click on the link

Posted: Fri Jan 30, 2004 2:43 pm
by xisle
<A href="" onClick="window.open('news.php?id=<?php echo $id ?>','windowname','toolbar=0,menubar=0,scrollbars=1,resizable=1,width=500,height=400'); return false;">

turn window attributes on with a 1, off with a 0

Posted: Fri Jan 30, 2004 2:56 pm
by John Cartwright
I don't quite understand the point of that...

Posted: Fri Jan 30, 2004 4:25 pm
by Illusionist
Try changing your javascript line to:

Code: Select all

&#1111;<a href="javascript:void(0)" onClick="javascript:window.open('news.php?id=<?php echo $id ?>','myWindow','width=500','height=500');">read more on <?php echo $id ?></a>]
You don't need the Read More on $id thing, i just put that in there while i was testing with a loop, and it worked for me!

EDIT: I'm a little slow - didn't see there was a second page to this thread!!

Posted: Fri Jan 30, 2004 4:52 pm
by John Cartwright
yay thanks alot

Posted: Fri Jan 30, 2004 11:44 pm
by McGruff
Pop-ups are a pain in the ass.