Re: Browser sniff for Stylesheet determination
by "Frank Boumphrey" <bckman(at)ix.netcom.com>
|
Date: |
Thu, 20 Apr 2000 00:45:10 -0400 |
To: |
"Tammy Scroggs" <tscroggs(at)blackandblueink.com>, <hwg-style(at)hwg.org> |
References: |
gte |
|
todo: View
Thread,
Original
|
|
> I'd like to do a browser sniff and have the results of that check
> determine the appropriate style sheet to be pulled for use with that
> page
This actually is very easy to do both on the server with ASP, and on the
client with script.
Although I have done this often in the past, i don't bother any more, I just
write a style sheet that gives a reasonablee presentation in both major
browsers, and which degrades gracefully.
Manyof the major sites including Microsoft and Netscape make wide use of
Browser sniffing.
Frank
----- Original Message -----
From: Tammy Scroggs <tscroggs(at)gte.net>
To: <hwg-style(at)hwg.org>
Sent: Wednesday, April 19, 2000 10:28 PM
Subject: Browser sniff for Stylesheet determination
> Evening,
>
> I've got a technical and theory question for everyone.
>
> Here's what I'd like to be able to do. I know it's possible, I've
> just not determined all the potentialities.
>
> I'd like to do a browser sniff and have the results of that check
> determine the appropriate style sheet to be pulled for use with that
> page. There would probably be multiple IE and multiple Netscape
> sheets (with possibly a few others thrown in) to cover our current
> browser stats.
>
> I've seen scripts to do this with JavaScript; but, I'd like to hear
> from some people who have tried this. How successful was it? How
> efficient? Is there a max number of stylesheets you'd recommend
> before the process would suffer? Any limitations?
>
> I'm also considering the possibility of doing this with an ASP
> browser verification and VBscript.
>
> I've discussed this with one of our developers and he's sure we can
> work it out. My questions (once again) are: 1) has anyone here done
> this? how many style sheets were you supporting and what's your
> opinion of your results?
>
> And, finally, which option would be more efficient? The site already
> uses both ASP with VB script, and javascript for varying purposes.
> In discussing this with the developer, our logic for speediest
> rendering went with doing this with ASP; but, neither of us has
> really seen it in action so it's purely theory at this point.
> Supposition and definitive proof are both welcome.
>
> Thanks.
>
> Tammy
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA