Solved

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

Posted on 1998-08-13
3
149 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 100 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This Micro Tutorial will demonstrate how nuggets on the Web are formatted by using Chrome Developer Tools. These tools would not only view the site's CSS but it can also modify it and save the CSS to use on your own site.
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…

805 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