Forum Moderators: open

Message Too Old, No Replies

AOL browser Sniffer

         

Gene

3:01 pm on Aug 2, 2002 (gmt 0)

10+ Year Member



I've searched prior posts unsuccessfully...

I'm looking for some handy dandy Javascript to sniff out AOL browsers, but I DON'T want regular IE users. Can anyone steer me in the right direction?

Thanks,
Gene

rubik

3:21 pm on Aug 2, 2002 (gmt 0)

10+ Year Member



Gene,

You can detect AOL 6 & 7 versions using this javascript

if(navigator.userAgent.indexOf('AOL') !=-1) {

alert('You are using an AOL browser!');

}

You can put a popup action in there to tell them how to change ther "used compressed graphics" preferrence.

You will have to use a server side agent to detect previous versions of AOL (4 & 5) since they use a Internet Explorer browser variation. You will have to detect their user agent then compare it to This List [webmaster.info.aol.com] to make sure you have all bases covered.

In reality, AOL currently will not provide support for users who are not using versions 6 or 7, and they try to "force" their users to upgrade. I don't have any statistics that show how many percent of users use what version of AOL (I am sure someone might share that info), but I only worry about the majority of their users who use versions 6 or 7.

Gene

3:41 pm on Aug 2, 2002 (gmt 0)

10+ Year Member



Thanks Rubic!

I gather you read my post in the graphic forum, since I want to alert users to the crappy Jpeg images AOL is rendering.

Just before reading your reply I did some google searching and found this...

[perlscriptsjavascripts.com...]

It's supposed to sniff out almost everything, and the AOL portion of the script resembles yours.

Thanks again,
--Gene