Re: Java Pop UP...
| From: | Richard Lynch | Date: | Tue, 02 Jul 2002 23:58:48 +0000 |
| Subject: | Re: Java Pop UP... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105095@lists.php.net to get a copy of this message | ||
>Hi everyone...
>
>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?
Pretty much just like you typed it, only get the full URL in there... :-)
<a target='_blank'
onclick="MM_openBrWindow('73things_thread.php?threadID=<?=$row->postid?>','T
hread','scrollbars=yes,width=300,height=255')">
Think of it this way:
PHP just spews stuff to the browser. Make it spew the *right* stuff to keep
JavaScript happy, and it will work.
--
Like Music? http://l-i-e.com/artists.htm