RE: [PHP] Java Pop UP...

From: Date: Wed, 26 Jun 2002 21:00:43 +0000
Subject: RE: [PHP] Java Pop UP...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-104064@lists.php.net to get a copy of this message
Or just make sure it is not contained within <? ?>. Bruce Karstedt President Technology Consulting Associates, Ltd. Tel: 847-735-9488 Fax: 847-735-9474 -----Original Message----- From: Erik Price [mailto:pricee@hhbrown.com] Sent: Wednesday, June 26, 2002 2:51 PM To: doug@coning.com Cc: PHP List Subject: Re: [PHP] Java Pop UP... Importance: Low On Wednesday, June 26, 2002, at 03:37 PM, Doug Coning wrote: > I have a php page that return rows from a database. I then have an href > link to the individual thread as such: > > <a href='73things_thread.php?threadID=".$row->postid."' > target='_blank'>". > > > This works, it opens a new window which has the detailed information > needed. > However, how would I write java code into this to force it to open the > window at 300 by 255? I know the java code for this is as follows: > > onclick="MM_openBrWindow('73things_thread.php','Thread','scrollbars=yes,widt > h=300,height=255') > > How do I merge the java code into PHP? Make sure the function is defined somewhere above, between <script type='text/javascript'> tags, and then you print this: print "<a href=\"javascript:MM_openBrWindow('73things_thread.php','Thread','scrollbars = yes,width=300,height=255')\">Click here for a new window at 300 x 255</a>"; Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#104064) next »