FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Print preview in php
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Print preview in php [message #174255 is a reply to message #174252] Sat, 28 May 2011 15:30 Go to previous messageGo to previous message
Thomas 'PointedEars'  is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Storing parsed XML-elements as blobs
Next Topic: PHP Extension Won't Install
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 03:34:13 GMT 2024

Total time taken to generate the page: 0.04105 seconds