Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-08-13
3
Medium Priority
?
155 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 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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