Solved

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

Posted on 1998-08-13
3
153 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Bada platform is becoming more and more famous this days and people talking about same. Some friends included those who have bada OS mobile asked me "what is bada?"and "what its features?". That encouraged me to research and write this article. [st…
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…

627 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