Re: PHP to replace javascript

From: Date: Sat, 04 Sep 2004 03:34:13 +0000
Subject: Re: PHP to replace javascript
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-195804@lists.php.net to get a copy of this message
Mark wrote:
--- Jack Gates <jack@morningstarcom.net> wrote:
Greetings, This is my first post here and I am still new to PHP and learning. I just joined this list last night. Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a note or picture etc. Can this be done with PHP? If yes, will someone tell me where in the manual on the php.net site I can find the information to learn how to do this? I have been looking through the manual on the site but without knowing the name or names of what I am looking for it is real hard to find it.
Since PHP is a server-side language, it can't really tell the browser to do anything. However you can generate javascript from your PHP code (if necessary) to open (and close) browser windows. Mark ===== Mark Weinstock mark_weinstock@yahoo.com *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. ***************************************
Mark is right, this can be very useful. Especially if, say you have multiple images at different sizes that you're opening in a pop up, and you want each window to fit the image perfectly. You could then use PHP to get the size of the image, to then dynamically insert into the JavaScript. Congrats on RTFM!! It seems daunting at first, but as you learn more, it will become your friend. -- Chris Martin Web Developer Open Source & Web Standards Advocate http://www.chriscodes.com/

« previous php.general (#195804) next »