PHP POPUPS? hehe

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

oh and the problem occurs when I click on the link
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

I don't quite understand the point of that...
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post 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!!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

yay thanks alot
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Pop-ups are a pain in the ass.
Post Reply