![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Rather than forcing them to print a page that is a mirror image (or as close as possible) of the page, |
|
I'd like to give them the option of printing the index, the header, the art work that just pretties up the page, and the background or omit it as they see fit. |
|
What are the best ways to accomplish this? |
#3
| |||
| |||
|
|
Let's say that I want to make printing the web pages at my customer's site as flexible as possible. Rather than forcing them to print a page that is a mirror image (or as close as possible) of the page, I'd like to give them the option of printing the index, the header, the art work that just pretties up the page, and the background or omit it as they see fit. What are the best ways to accomplish this? |
|
I can well imagine using Javascript for that purpose but it seems a bit dated as approaches go. What better methods exist for accomplishing this goal? Can anyone point me to tutorials for these methods? |
#4
| |||
| |||
|
|
"Bergamot" <bergamot (AT) visi (DOT) com> wrote in message news:6sg5vrF5ruipU1 (AT) mid (DOT) individual.net... Rhino wrote: Rather than forcing them to print a page that is a mirror image (or as close as possible) of the page, FYI, you can't force anything. No, of course not. Forgive my poor choice of words. What I meant to say was, that if I do nothing about setting up a specific print stylesheet, they will print everything on the page, less the backgrounds if they have that turned off in the browser. And that, as we know, is a waste of their ink. I'd like to give them the option of printing the index, the header, the art work that just pretties up the page, and the background or omit it as they see fit. Printing backgrounds are already under the user's control - it's a browser setting. You cannot make backgrounds print if the user has them disabled. You can, however, hide/omit them with a print stylesheet. Yes, you're right about the background. I forgot about that setting in the browser. What are the best ways to accomplish this? Not sure why you want to go to the trouble of making those other elements selectable by the user in the first place. My usual method is to use CSS @media rules - some specific to screen media that include backgrounds and such, and some for print that hide the site navigation and other unnecessary things. Don't waste the user's expensive printer ink. Actually, it's not really my idea. My customer would like to be able to give the user control over this. I suggested that when her customers chose to print a specific page, we printed simply the information that was unique to that page, i.e. the main body of the page, less any site navigation and non-essential graphics (art that merely adorns the page rather than essential stuff like a map how to get to her place of business). But she apparently thinks the site visitors might want the choice of printing the adorning art so she wants to know if we can give them that option. I think it's a reasonable request so I'm trying to figure out the best way to do it. In fact, I thought I'd go one better. I'd like to be able to have a dialog that comes up when someone clicks a print button and that dialog should give the user three radio buttons: o Print everything o Print only the information unique to this page o Print only the following portions of the page |
|
The last option would be followed by checkboxes that would say: - header/logo - site navigation - adorning art |
|
Of course the wording of the options would be a little different but that is the gist. What is my best way of accomplishing that? I'm really not that keen on Javascript but will certainly consider it if there is no better way..... -- Rhino |
#5
| |||
| |||
|
|
"Bergamot" <bergamot (AT) visi (DOT) com> wrote in message news:6sg5vrF5ruipU1 (AT) mid (DOT) individual.net... Rhino wrote: Rather than forcing them to print a page that is a mirror image (or as close as possible) of the page, FYI, you can't force anything. No, of course not. |
#6
| |||
| |||
|
|
Let's say that I want to make printing the web pages at my customer's site as flexible as possible. Rather than forcing them to print a page that is a mirror image (or as close as possible) of the page, I'd like to give them the option of printing the index, the header, the art work that just pretties up the page, and the background or omit it as they see fit. What are the best ways to accomplish this? I can well imagine using Javascript for that purpose but it seems a bit dated as approaches go. What better methods exist for accomplishing this goal? Can anyone point me to tutorials for these methods? You could use a form and javascript (DHTML) to alter the style sheet |
![]() |
| Thread Tools | |
| Display Modes | |
| |