Re: Can PHP do what this javascript does...

From: Date: Wed, 24 Oct 2001 21:33:29 +0000
Subject: Re: Can PHP do what this javascript does...
Groups: php.general 
Request: Send a blank email to php-general+get-72169@lists.php.net to get a copy of this message
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 <meheler@searchbc.com> on 10/24/2001 10:31:30 PM Internet mail from: To: chip.wiegand@simrad.com cc: php-general@lists.php.net 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 chip.wiegand@simrad.com wrote: ><i>To print</i>: <a href="javascript:if (window.print != null) { >window.print(); } > else { alert('Unfortunately, your browser does not support this shortcut. >Please select Print from the File menu.'); }"> ><b>Click here</b></a> <i>or</i> Select <b>File</b> >and then <b>Print</b> 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 >chip.wiegand@simrad.com >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!) > >

« previous php.general (#72169) next »