Yep...just wanna kick the baddies
Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
t. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com
----- Original Message -----
From: Samuel R. Neff
To: CF-Talk
Sent: Wednesday, April 07, 2004 3:58 PM
Subject: RE: browser detection script
That's fine for JS but I think the question here was about layout of HTML
and CSS support. You can't use JS to tell if a browser supports the
HTML/CSS you're using without browser sniffing.
But I think the only real concern is NN4 or not NN4. NN4 is the only old
browser we encounter on a regular basis since for some reason people still
install it on new PCs. Most new browsers are consistent enough to not need
to browser sniff.
Sam
----------------------------------------
Blog http://www.rewindlife.com
TeamMM http://www.macromedia.com/go/team
----------------------------------------
> -----Original Message-----
> From: Charlie Griefer [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 6:36 PM
> To: CF-Talk
> Subject: Re: browser detection script
>
> what Jochem is suggesting is testing for the capability of
> any browser to be
> able to correctly render your code.
>
> back in the day, when rollover scripts were the 'big thing', not all
> browsers supported images as objects. instead of testing for
> each browser,
> the standard test was:
>
> if (document.images)
>
> based on that conditional, any browser that supported the
> image object would
> support your rollovers.
>
> I don't do too much DHTML, so I'm really not sure what kind of object
> detection you'd need to do today (nor do I know specifically what
> functionality you're going for).
>
> look at the source for some DHTML menus. You'll see things like:
>
> if (document.all)
>
> or
>
> if (document.layers)
>
> I know this doesn't completely answer your question...but
> hopefully it'll be
> enough to give you a head start.
>
> Charlie
>
> ----- Original Message -----
> From: "Bryan Stevenson" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 07, 2004 3:07 PM
> Subject: Re: browser detection script
>
> > Thanks Jochem....but how do I test if a browser will render
> the site as
> intended (i.e. in NS 4 this site looks WAY off the intended look).
> >
> > Mabye I can simplify this with a little help from CF-Talkers...
> >
> > CGI.USER_AGENT spits out something like so:
> > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
> >
> > If someone can tell me what IE 4/5/6 and Netscape 4/6/7
> would spit out
> then I can whip this puppy up in a few minutes (I'm sure it's
> just looking
> at the part in brakets for "MSIE" etc....but I know there are
> some odd ones.
> >
> > Even better would be if someone has a list of what
> IE/Netscape/Gecko/Safari/Opera would spit out ;-)
> >
> > Cheers
> >
> > Bryan Stevenson B.Comm.
> > VP & Director of E-Commerce Development
> > Electric Edge Systems Group Inc.
> > t. 250.920.8830
> > e. [EMAIL PROTECTED]
> >
> > ---------------------------------------------------------
> > Macromedia Associate Partner
> > www.macromedia.com
> > ---------------------------------------------------------
> > Vancouver Island ColdFusion Users Group
> > Founder & Director
> > www.cfug-vancouverisland.com
> > ----- Original Message -----
> > From: Jochem van Dieten
> > To: CF-Talk
> > Sent: Wednesday, April 07, 2004 2:49 PM
> > Subject: Re: browser detection script
> >
> >
> > Bryan Stevenson wrote:
> > >
> > > Does anybody have a rock solid _javascript_ script for browser
> detection? or a
> > > CF code snippet?
> > >
> > > I'm under the gun and don't really want to re-invent
> the wheel using
> this
> > > script (it's kind of overkill....but very good):
> > > http://webreference.com/tools/browser/_javascript_.html
> > >
> > > I'm not after anything fancy....just accurate ;-) I
> essentially want
> to
> > > redirect those with browser we won't be supporting.
> >
> > The best way to do so is to test if the browser has the required
> > functionality, not to test for browser name (changes), version
> > (changes even faster) or security settings.
> >
> > Jochem
> >
> > --
> > I don't get it
> > immigrants don't work
> > and steal our jobs
> > - Loesje
> >
> >
> >
> ________________________________
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

