|
-
Dec 26th, 2002, 12:37 PM
#1
Thread Starter
Fanatic Member
Help convert from VBScript to JavaScript
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
-
Dec 26th, 2002, 01:11 PM
#2
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.
-
Dec 27th, 2002, 03:35 PM
#3
you could still do the redirect...
document.location.href = whatever.
-
Dec 27th, 2002, 05:01 PM
#4
Originally posted by mendhak
you could still do the redirect...
document.location.href = whatever.
True, but you still don't have access to the Session variables.
-
Dec 28th, 2002, 02:32 AM
#5
Originally posted by techgnome
True, but you still don't have access to the Session variables.
]
True, but you can still redirect.
-
Dec 28th, 2002, 02:35 AM
#6
Re: Help convert from VBScript to JavaScript
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
aah... you could always use cookies instead of session variables.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|