PDA

View Full Version : Conversion from VBScript to Javascript


pkbajpei
09-24-2002, 08:28 PM
Hi
I'm new to javascript and all scripting languages. Can anyone help me in converting the below Code from VBScript to Javascript.
<%
Dim mystring
mystring = Request.ServerVariables("HTTP_USER_AGENT")
If inStr(mystring, "IE") then
%>
<!-- #include file="SmartViewerActiveX.asp" -->
<%
else
%>
<!-- #include file="ActiveXPluginViewer.asp"-->
<%
end if
%>
Would appreciate any help.
Pranav

beetle
09-24-2002, 08:32 PM
That is server-side VBScript implemented via the ASP framework (a.k.a. VBScript ASP a.k.a. VB ASP a.k.a ASP)

So there is no client-side conversion that can take place. You can convert the VBScript ASP over to JScript ASP, but there's really no point in that.