Print Page | Close Window

server side script not running in Netscap

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=13356
Printed Date: 30 March 2026 at 11:01pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: server side script not running in Netscap
Posted By: vince36
Subject: server side script not running in Netscap
Date Posted: 14 January 2005 at 3:50pm
Hi,

I have the below code in an asp page. When I run this page in IE or Opera it
correctly displays the header info and does not redirect me to 'test.html'.
However, when I run this in Netscape it goes straight to the redirect page
'test.html' which indicates that javascript is not enabled (it is enabled) and it also does
not display the header info. Can someone tell me why this is happening?

<%@ Language=VBScript%>
<%'get header info
Response.Write Request.ServerVariables("HTTP_USER_AGENT")

'detect javascript
Set bc = Server.CreateObject("MSWC.BrowserType") %>
Browser Name: <%=bc.browser %>
Browser Version: <%=bc.version%>

<%
if (bc.javascript = FALSE) then
 response.write("no javascript")
 response.Redirect("Test.html")
else
 response.write("has javascript")

end if
set bc=nothing
%>



Replies:
Posted By: dpyers
Date Posted: 15 January 2005 at 6:49pm
Are you running this from your local machine with iis installed or from a remote server?
 
MSWC.BrowserType is an ActiveX control that comes with IIS. I think the problem might be either Netscape support for ActiveX If you're running from a local IIS server, or perhaps NS references a different browsercap.ini file.
 
EDIT: Does NS print the Browser type and version?
 
.
 


-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: vince36
Date Posted: 15 January 2005 at 7:07pm
Well, NS isn't printing the browser type and version so I'm wondering why.
 
I was also thinking that the browsecap.ini may be outdated but I don't think that should affect the http_user_agent info. The page is running on a remote server on IIS.
 
Any ideas would be greatly appreciated.
 
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net