Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1911

Re: Print preview in php

Message-Id <3881456.Qq0lBPeGtt@PointedEars.de>
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2011-05-28 17:30 +0200
Subject Re: Print preview in php
Newsgroups comp.lang.php
References <fb8ba0bb-310a-4470-b63d-3f9d353468c8@gu8g2000vbb.googlegroups.com> <irpism$jhp$1@dont-email.me> <xJidnWeLWcSY_33QnZ2dnUVZ_gOdnZ2d@posted.localnet> <78c83f9f-5257-4a22-8475-1fc3af9eeb73@gc3g2000vbb.googlegroups.com> <4MSdnd1vaeA8aX3QnZ2dnUVZ_jqdnZ2d@posted.localnet>
Followup-To comp.lang.php

Followups directed to: comp.lang.php

Show all headers | View raw


Robert Heller wrote:

> Co wrote:
>> > <a href=3D"#" onclick=3D"window.print();return false;">Print</a> and
>> > optionally one like <a href=3D"#" onclick=3D"window.close();return
>> > false;">Close</a>. The first is a button to print the page and the
>> > second is a button to close the popup window.
>> 
>> what should there be in the ServeThePrinterFriendlyPage.php?
>> Is that the same as in the normal page but without images etc?
> 
> Yes.  Probably also without stuff like sidebars, menus, and extanious
> navigation features -- just the basic printable content.

You have been told that this is bad advice already.  Having such a link 
involves another navigation step for proper printing, it does not generally 
generate the same content that is currently being viewed, and it creates a 
hardly maintainable mess in the PHP code.  DO NOT do this, use stylesheets 
instead.

And will you *please* trim your quotes?


PointedEars
-- 
    realism:    HTML 4.01 Strict
    evangelism: XHTML 1.0 Strict
    madness:    XHTML 1.1 as application/xhtml+xml
                                                    -- Bjoern Hoehrmann

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Print preview in php Co <vonclausowitz@gmail.com> - 2011-05-27 14:48 -0700
  Re: Print preview in php The Natural Philosopher <tnp@invalid.invalid> - 2011-05-28 01:33 +0100
  Re: Print preview in php Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-27 21:24 -0400
    Re: Print preview in php Robert Heller <heller@deepsoft.com> - 2011-05-27 21:46 -0500
      Re: Print preview in php Co <vonclausowitz@gmail.com> - 2011-05-28 02:05 -0700
        Re: Print preview in php Robert Heller <heller@deepsoft.com> - 2011-05-28 08:12 -0500
          Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-28 17:30 +0200
      Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-28 13:33 +0200
        Re: Print preview in php Co <vonclausowitz@gmail.com> - 2011-05-28 05:04 -0700
          Re: Print preview in php TK <tknospa@wejuggle2.com> - 2011-05-28 07:22 -0500
            Re: Print preview in php dougatmilmacdotcom@example.com (Doug Miller) - 2011-05-28 14:14 +0000
            Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-28 17:27 +0200
              Re: Print preview in php TK <tknospa@wejuggle2.com> - 2011-05-28 12:20 -0500
                Re: Print preview in php Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-28 14:07 -0400
                Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-28 20:27 +0200
                Re: Print preview in php TK <tknospa@wejuggle2.com> - 2011-05-28 15:18 -0500
              Re: Print preview in php TK <tknospa@wejuggle2.com> - 2011-05-30 07:32 -0500
                Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-30 18:58 +0200
                Re: Print preview in php TK <tknospa@wejuggle2.com> - 2011-05-31 07:34 -0500
                Re: Print preview in php Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-31 15:08 +0200
      Re: Print preview in php Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-28 09:06 -0400

csiph-web