Re: GZip + NS + Print = Trouble

From: Date: Wed, 28 Mar 2001 14:51:09 +0000
Subject: Re: GZip + NS + Print = Trouble
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-45911@lists.php.net to get a copy of this message
If you're using a templating system of some sort, if should be pretty easy to check the USER_AGENT and only compress if it's IE. Or NOT compress is it's NS. That's about the only way to do it easily that I can think of, and we're planning on implementing. <rant mode="on"> I WANT to like netscape. REALLY. But they've pretty much made it impossible by not fixing things. Historically, NS had an edge on features over IE, imo, till the 4 series. Neck and neck, again, imo. But without any significant changes in years its just way behind the times. Reloading a page to do 'view source'? (Sorry - POSTED data!) Reloading a page to print? Reloading a page after a browser resize? Just ridiculous engineering, imo. Even more so when you figure that, when this was first out, every one was on 14.4 modems. <rant mode="off"> Hopt that helps. Renze Munnik wrote: > Thanks for bringing up this solution. However... I already thought > of this option myself. Problem, though, is that _ALL_ my pages > should be printable. Maybe a very small number of pages will not > have to be printable, but those are so small that the compression > isn't realy necesary. Besides that I don't realy like sites that use > separate 'printer-friendly' pages. When I'm looking at some page I > just want to be able to print it rightaway. And I want to give my > clients this opportunity to. That's why I also have a separate > (extra/own) print-button on my sites. The user can just use that > without realy having to know how the browser works (concerning > printing). Because you will just not believe how 'stupid' some users > are. > > But anyway... any other solutions are ofcourse _very_ much welcome > and I'll keep y'all posted a.s.a. I get some more info about this > subject. > > RenzE > > On Wed, Mar 28, 2001 at 09:49:45AM +0100, Jurian wrote: > > Hehe, I've seen that before, stupid netscape :-) > > We're using output compression as well, what we did, was make an option to > > disable compression (http://site/file.html?skip_compress=true) in the > > compression function. Then have a "printer friendly page" button on pages > > you want to be printable, that links to the current page, with the > > skip_compress=true option. That way the browser gets the uncompresses > > version, and prints ok again. I haven't been able to get netscape to print > > the uncompressed text when the output is compressed, if you somehow find a > > way that doesn't require reloading the page with an option like > > skip_compress, please, let me know :-) > > > > Hope this helps, > > > > Jurian > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#45911) next »