Can anyone assist me converting this simple vbscript to javascipt?
i know nothing about javascript
<%
'===========================================
'== Here are the variables you can customise
'===========================================
AppTitle = "Testing"
AppUsername = "MyAppUser"
AppPassword = "MyPasword"
AppCookie = "MyCookie"
Group=""
UserType=""
'=================================
' don't change anything below here
'=================================
strAuth = request.Cookies(Appcookie)
if strAuth = "false" OR strAuth = "" then
CReturnURL= Request.ServerVariables("SERVER_NAME"
&_
Request.ServerVariables("PATH_INFO"
response.Cookies("RetURL"
= CReturnUrl
response.Cookies("AppTitle"
= AppTitle
response.Cookies("AppUsername"
= AppUsername
response.Cookies("AppPassword"
= AppPassword
response.Cookies("CookieName"
= AppCookie
response.Cookies("group"
= Group
response.Cookies("UserType "
= UserType
response.redirect("
end if
Department = request.Cookies("Department"
Email = request.Cookies("Email"
Username = request.Cookies("Username"
FullName = request.Cookies("FullName"
Surname = request.Cookies("SN"
FirstName = request.Cookies("FS"
ADsPath = request.Cookies("ADsPath"
i know nothing about javascript
<%
'===========================================
'== Here are the variables you can customise
'===========================================
AppTitle = "Testing"
AppUsername = "MyAppUser"
AppPassword = "MyPasword"
AppCookie = "MyCookie"
Group=""
UserType=""
'=================================
' don't change anything below here
'=================================
strAuth = request.Cookies(Appcookie)
if strAuth = "false" OR strAuth = "" then
CReturnURL= Request.ServerVariables("SERVER_NAME"
Request.ServerVariables("PATH_INFO"
response.Cookies("RetURL"
response.Cookies("AppTitle"
response.Cookies("AppUsername"
response.Cookies("AppPassword"
response.Cookies("CookieName"
response.Cookies("group"
response.Cookies("UserType "
response.redirect("
end if
Department = request.Cookies("Department"
Email = request.Cookies("Email"
Username = request.Cookies("Username"
FullName = request.Cookies("FullName"
Surname = request.Cookies("SN"
FirstName = request.Cookies("FS"
ADsPath = request.Cookies("ADsPath"