Alternate "alternate" print stylesheet (Full Version)

All Forums >> [Web Development] >> Cascading Style Sheets



Message


mtfm -> Alternate "alternate" print stylesheet (9/25/2007 16:59:40)

I have a weird situation--I have a big page chock full of data, some of which is useful to certain people, and some of which is useful to others. I'd like to be able to tailor what prints based on the user's needs, both to save the trees and make it that much easier on them so they don't have to wade through reams of "useless" stuff. So what I really want is an alternate alternate stylesheeet for printing.

I already use an alterrnate stylesheet for printing, and for visual display I use the alternate stylesheet switcher, as described in this (excellent) writeup on A List Apart.

I'm thinking maybe I can combine the two and have the user click a button to set a cookie, and then when it prints the cookie will tell the printer what stylesheet to pull? Can a printer do that?

Anyone have other suggestions?

thanks!
Andrew





womble -> RE: Alternate "alternate" print stylesheet (9/26/2007 4:20:22)

Hmmmm...interesting one. Just checking I've got this right - so you have 1 display stylesheet and 2 print stylesheets? The switcher would set a cookie to change just the print stylesheet, not the display stylesheet?

I should imagine that if it's just the print stylesheets you'd want to change, you could just use the stylesheet switcher. If you're wanting to change both display and print stylesheets then it would be more complicated. Maybe you could use js or PHP and an 'if else' depending on whether a cookie's been set?




mtfm -> RE: Alternate "alternate" print stylesheet (9/27/2007 10:45:24)

Ideally I'd want both display and print to be changeable.

I just wasn't sure if it was even possible. I wasn't sure if a printer would be able to accept more than 1 stylesheet. I'd certainly never seen that done before.

But it sounds like it is indeed possible, and given that information I'll look into it further. Probably be a week or more, I've got other more pressing issues on my plate...

thanks for the reply!




womble -> RE: Alternate "alternate" print stylesheet (9/27/2007 14:28:21)


quote:

ORIGINAL: mtfm

Ideally I'd want both display and print to be changeable.

I just wasn't sure if it was even possible. I wasn't sure if a printer would be able to accept more than 1 stylesheet. I'd certainly never seen that done before.


I suspected that was what you intended. I've never done it before either, but I would imagine that if you use a server side script and an if/else to test whether the cookies been set, you should be able to feed the printer just the stylesheet you want.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625