Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Code to determine the difference between ie3.02 and ie4.01

Posted on 1998-08-13
3
Medium Priority
?
156 Views
Last Modified: 2006-11-17
I have a link for a quiz on our intranet site and have two applications both developed using ActiveX technology.  Now determining if the user is using ie3 or 4 I need that link to determine the version and go to the application that fits that browser version.  Is there a way to do this?
0
Comment
Question by:jnelly
  • 2
3 Comments
 

Author Comment

by:jnelly
ID: 1822222
Adjusted points to 105
0
 
LVL 2

Accepted Solution

by:
bernfarr earned 200 total points
ID: 1822223
Assuming you're asking how to detect which browser a person is using and then reprogram the link, here's some browser detection code written in JavaScript with results for a variety of browsers:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body topmargin=0 leftmargin=0 bgcolor="#FFFFFF" text="#000000">
<script language="JavaScript">
<!--
var VersionNumber = parseInt( navigator.appVersion ) * 1000;

document.write( "<BR>"+"navigator.appName [" + navigator.appName + "]<BR>" );
document.write( "navigator.appVersion [" + navigator.appVersion + "]<BR>" );
document.write( "Converted version " + VersionNumber + "<BR><BR>" );
// -->
</script>
</body>
</HTML>

Results are:----
For Microsoft IE 3.02
navigator.appName [Microsoft Internet Explorer]
navigator.appVersion [2.0 (compatible; MSIE 3.02; Update a; Windows 95)]
Converted version 2000

For IE 4.0
navigator.appName [Microsoft Internet Explorer]
navigator.appVersion [4.0 (compatible; MSIE 4.01; Windows NT)]
Converted version 4000

For Netscape Navigator 3.01
navigator.appName [Netscape]
navigator.appVersion [3.01 (Win95; I)]
Converted version 3000

For Netscape Navigator 3.03 Gold
navigator.appName [Netscape]
navigator.appVersion [3.03Gold (Win95; I)]
Converted version 3000

For Netscape 4.04
navigator.appName [Netscape]
navigator.appVersion [4.04 [en] (WinNT; I)]
Converted version 4000
0
 
LVL 2

Expert Comment

by:bernfarr
ID: 1822224
jnelly

Is this what you wanted, or do you need more specific code that uses the browser version to upload a particular page?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
When you put your credit card number into a website for an online transaction, surely you know to look for signs of a secure website such as the padlock icon in the web browser or the green address bar.  This is one way to protect yourself from oth…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question