sniper
11-17-2005, 11:51 AM
I have to eliminate all javascript and replace it with asp. I've come across some code that checks the browser and version and can't remember the asp equivalent, nor can I find the code I had from school in my notebook. Here's the code I have to convert:
if (parseFloat(navigator.appVersion.substring(0,1)) < 4) then
response.redirect("BrowserError.asp?Lang="+request.QueryString("Lang"))
else
if(navigator.appName ="Netscape")then
if(parseFloat(navigator.appVersion.substring(0,4)) < 4.06)then
response.redirect("BrowserError.asp?Lang="+request.QueryString("Lang"))
end if
end if
end if
Thank you.
if (parseFloat(navigator.appVersion.substring(0,1)) < 4) then
response.redirect("BrowserError.asp?Lang="+request.QueryString("Lang"))
else
if(navigator.appName ="Netscape")then
if(parseFloat(navigator.appVersion.substring(0,4)) < 4.06)then
response.redirect("BrowserError.asp?Lang="+request.QueryString("Lang"))
end if
end if
end if
Thank you.