Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 11th, 2003, 12:54 PM
Registered User
Join Date: Sep 2003
Location: Dallas, TX, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default appMinorVersion

Good afternoon ASp forum,

Our company has built a VPN for 2200 hospitals in 50 states.
One of the features of our about to be released catalog works
depending on which Service Pack is installed on the client.
We would like to detect the OS, browser, browser version and
service pack number so we can notify our clients who need upgrades.
We can detect the service pack number on the client using the
Javascript object Navigator.appMinorVersion but cannot pass this data
from Javascript into ASP where the data would be captured to a database.
In the code for the page below marked ASPJavascriptH.asp the Javascript works but the ASP does not. Our conclusion is server side and client side objects cannot be mixed.

We can get the OS, browser, and browser version using ASP
<%= Request.ServerVariables("HTTP_USER-AGENT") %>
but can find no way of getting the service pack number. Is there an object in the Microsoft world that parallels the Javascript object Navigator.appMinorVersion?


<title>Browser Information Detection Script</title>
var Browser_Name = navigator.appMinorVersion;
<script language="javascript" runat="server">
function BrowserValue()
var Browser_Name2 = navigator.appMinorVersion;
 <SCRIPT language=JavaScript>
 document.write("Your Browser is: <b>"+ Browser_Name +"</b><br>");
<p>Result: <%BrowserValue()%></p>

Reply With Quote
  #2 (permalink)  
Old September 12th, 2003, 07:50 AM
Friend of Wrox
Join Date: Jun 2003
Location: Copenhagen N, , Denmark.
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega

You can't use client-side DOM from a server. What you need to do is send the client-side information to the server using POST or GET. Also you can't pass a javascript object to a non javascript language like vbscript. I don't know about jscript, but I wouldn't bet on it. If you look into the server object try use
For Each Variable In Request.ServerVariables
  Response.Write(Variable & " <b>" & Request.ServerVariables(Variable) & "</b><br />")
You might find something useful like the OS version number...

Regards - Jon
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

All times are GMT -4. The time now is 01:54 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.