Forums
This topic is locked
Modifying ASP/VBSCRIPT to work on a NON-IIS server
Posted 12 Jun 2002 17:06:16
1
has voted
12 Jun 2002 17:06:16 Mitchel Tendler posted:
I developed the following code (with some help from this group).It's purpose is to redirect the viewer according to the browser language
setting.
I received this request from my client...I don't think it's possible:
"could you embed the vbscript in an html file for me...the server that will
be hosting the site is not an IIS server and does not have asp"
I have no idea as to what they are talking about...HELP! <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
******************************************
<%@LANGUAGE="VBSCRIPT"%>
<% Session("lang" = Request.ServerVariables ("HTTP_ACCEPT_LANGUAGE" %>
<%
' set the session variable to all lower case
varCheck = LCase(Session("lang")
' check to see if the language you are looking for is
' contained in the session variable and
' redirect accordingly. This will re-direct to the
' first occurance of a language that it finds
if inStr(varCheck, "sv-fi" <> 0 then
response.redirect("sv-fi.html"
elseIf inStr(varCheck, "sv" <> 0 then
response.redirect("sv.html"
elseIf inStr(varCheck, "en-gb" <> 0 then
response.redirect("en-gb.html"
elseIf inStr(varCheck, "en-us" <> 0 then
response.redirect("en-us.html"
else
response.redirect("nodetect.html"
end if
%>
******************************************
Replies
Replied 12 Jun 2002 17:59:58
12 Jun 2002 17:59:58 Virginia Older replied:
Could they download Chili Soft. It allows one to run the ASP on their servers htat are not IIS. The other possibility is to code in server side javascript or if they have it, and I am not sure, server side VBscript not using ASP. Possible?
Replied 12 Jun 2002 18:06:35
12 Jun 2002 18:06:35 Mitchel Tendler replied:
ironyx,
Thanks! I'll mention it to them. I think they are renting web space, so I am not sure they would be allowed to run Chili Soft.
Thanks!
Mitch
When in doubt...reboot!
Thanks! I'll mention it to them. I think they are renting web space, so I am not sure they would be allowed to run Chili Soft.
Thanks!
Mitch
When in doubt...reboot!