Re: Print preview in php [message #174255 is a reply to message #174252] |
Sat, 28 May 2011 15:30 |
Thomas 'PointedEars'
Messages: 701 Registered: October 2010
Karma:
|
Senior Member |
|
|
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
|
|
|