navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Alternate "alternate" print stylesheet

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> Alternate "alternate" print stylesheet
Page: [1]
 
mtfm

 

Posts: 414
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
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



_____________________________

Is this possible? How about this? What about....?
womble

 

Posts: 5461
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
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?

_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to mtfm)
mtfm

 

Posts: 414
Joined: 1/13/2006
From: Mesa, AZ
Status: offline

 
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!

_____________________________

Is this possible? How about this? What about....?

(in reply to womble)
womble

 

Posts: 5461
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
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.


_____________________________

~~ "A cruel god ain't no god at all" ~~
:)

(in reply to mtfm)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> Alternate "alternate" print stylesheet
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts