Solved

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

Posted on 1998-08-13
3
148 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
Comment Utility
Adjusted points to 105
0
 
LVL 2

Accepted Solution

by:
bernfarr earned 100 total points
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now