Hi everyone,
How can I convert this statement from VBScript to JavaScript? I would appreciate any help. Thanks.
Code:
If Session("TEST") = False or IsNull(Session("TEST")) = True then
Response.Redirect("http://localhost/Test Web/Default.htm")
End If
Printable View
Hi everyone,
How can I convert this statement from VBScript to JavaScript? I would appreciate any help. Thanks.
Code:
If Session("TEST") = False or IsNull(Session("TEST")) = True then
Response.Redirect("http://localhost/Test Web/Default.htm")
End If
Um.... just so you know, ASP only runs VBScript...... unless you are converting to ZSP, in which case you'll need to look things up..... or are you trying to convert it to a client side JavaScript, which poses a problem -- you can't access Session objects from the client.
you could still do the redirect...
document.location.href = whatever.
True, but you still don't have access to the Session variables.Quote:
Originally posted by mendhak
you could still do the redirect...
document.location.href = whatever.
]Quote:
Originally posted by techgnome
True, but you still don't have access to the Session variables.
True, but you can still redirect. :D
aah... you could always use cookies instead of session variables. :)Quote:
Originally posted by Ace
Hi everyone,
How can I convert this statement from VBScript to JavaScript? I would appreciate any help. Thanks.
Code:
If Session("TEST") = False or IsNull(Session("TEST")) = True then
Response.Redirect("http://localhost/Test Web/Default.htm")
End If