Re: [PHP] Can PHP do what this javascript does...
Thanks for all the reponses. I know that php is server-side only, and that certain things like mouse-overs, are client-side, wasn't sure about the printer function though. I could have assumed it was, but I try not to assume anything, but always ask to make sure. Regards, Chip Mike Eheler <[EMAIL PROTECTED]> on 10/24/2001 10:31:30 PM Internet mail from: To: [EMAIL PROTECTED] cc: [EMAIL PROTECTED] Subject: Re: [PHP] Can PHP do what this javascript does... There's a really long method of doing it that would work, but would involve server-side browser detection, and a database containing a list of browsers that support print shortcuts. Stick with the JS. Mike [EMAIL PROTECTED] wrote: >To print: >Click here or Select File >and then Print from your browser's menu. > >Is there an equivelant bit of code to do this printer shortcut with php? > >-- >Chip Wiegand >Computer Services >www.simradusa.com >[EMAIL PROTECTED] >Simrad, Inc >Lynnwood, WA >425-712-1138 > >"There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment Corp., >1977 > (-- Then why do I have nine? Somebody help me!) > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can PHP do what this javascript does...
There's a really long method of doing it that would work, but would involve server-side browser detection, and a database containing a list of browsers that support print shortcuts. Stick with the JS. Mike [EMAIL PROTECTED] wrote: >To print: >Click here or Select File >and then Print from your browser's menu. > >Is there an equivelant bit of code to do this printer shortcut with php? > >-- >Chip Wiegand >Computer Services >www.simradusa.com >[EMAIL PROTECTED] >Simrad, Inc >Lynnwood, WA >425-712-1138 > >"There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment Corp., >1977 > (-- Then why do I have nine? Somebody help me!) > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can PHP do what this javascript does...
Javascript can be embedded in PHP files anyway. I do a lot of database management interfaces in PHP and one thing I want to do is protect items from being accidentally deleted. I use Javascript to verify that they intended to click on the link to delete the information. Remember, PHP files are enhanced HTML files, which means the browser will parse them exactly the same as a standard HTML file. Mike Frazer "Richard S. Crawford" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Unfortunately, since PHP lives on the server and JavaScript lives on the browser, there really is no way to get PHP to do what you want. Stick with JavaScript. There's really no reason not to when you're doing client-side programming. At 11:14 AM 10/24/2001, [EMAIL PROTECTED] wrote: >To print: >Click here or Select File >and then Print from your browser's menu. > >Is there an equivelant bit of code to do this printer shortcut with php? > >-- >Chip Wiegand >Computer Services >www.simradusa.com >[EMAIL PROTECTED] >Simrad, Inc >Lynnwood, WA >425-712-1138 > >"There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment Corp., >1977 > (-- Then why do I have nine? Somebody help me!) > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can PHP do what this javascript does...
Unfortunately, since PHP lives on the server and JavaScript lives on the browser, there really is no way to get PHP to do what you want. Stick with JavaScript. There's really no reason not to when you're doing client-side programming. At 11:14 AM 10/24/2001, [EMAIL PROTECTED] wrote: >To print: >Click here or Select File >and then Print from your browser's menu. > >Is there an equivelant bit of code to do this printer shortcut with php? > >-- >Chip Wiegand >Computer Services >www.simradusa.com >[EMAIL PROTECTED] >Simrad, Inc >Lynnwood, WA >425-712-1138 > >"There is no reason anyone would want a computer in their home." > --Ken Olson, president, chairman and founder of Digital Equipment Corp., >1977 > (-- Then why do I have nine? Somebody help me!) > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] Sliante, Richard S. Crawford http://www.mossroot.com mailto:[EMAIL PROTECTED] AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupéry "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Can PHP do what this javascript does...
On Wed, 24 Oct 2001 [EMAIL PROTECTED] wrote: > To print: > Click here or Select File > and then Print from your browser's menu. > > Is there an equivelant bit of code to do this printer shortcut with > php? PHP - _server_ side Javascript - _client_ side PHP cannot affect your client like Javascript can. -- Sapere aude My mind not only wanders, it sometimes leaves completely. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Can PHP do what this javascript does...
To print: Click here or Select File and then Print from your browser's menu. Is there an equivelant bit of code to do this printer shortcut with php? -- Chip Wiegand Computer Services www.simradusa.com [EMAIL PROTECTED] Simrad, Inc Lynnwood, WA 425-712-1138 "There is no reason anyone would want a computer in their home." --Ken Olson, president, chairman and founder of Digital Equipment Corp., 1977 (-- Then why do I have nine? Somebody help me!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]