Re: [PHP] Java Pop UP...
a href=javascript:void() onclick=window.open('73things_thread.php?threadID=?=$row-postid?','Threa d','width=300,height=255,resizable,scrollbars,status=yes') onmouseover=window.status='Gets rid of javascript void' onmouseout=window.status=''Link Text/a Rick I haven't failed, I've found 10,000 ways that don't work. - Ben Franklin From: Doug Coning [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 26 Jun 2002 14:37:11 -0500 To: PHP List [EMAIL PROTECTED] Subject: [PHP] Java Pop UP... 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? Thanks! Doug Coning Coning Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Java Pop UP...
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 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Java Pop UP...
Don't you mean Javascript? I am not sure if I understand your question...but here goes... Your PHP code will be executed first at the server side. You can use PHP to include or write out your Javascript functions in the head of your page. From here you can execute your javascript normally. /dkm - Original Message - From: Doug Coning [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Wednesday, June 26, 2002 3:37 PM Subject: [PHP] Java Pop UP... 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? Thanks! Doug Coning Coning Consulting -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php