Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


redirecting with vbscripts based on a button push

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,489
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> redirecting with vbscripts based on a button push
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 redirecting with vbscripts based on a button push - 11/15/2001 12:25:41 PM   
  rwatts

 

Posts: 1
Score: 0
Joined: 11/15/2001
From: USA
Status: offline
I am having trouble evaluating a button push. I can put it in a sub-routine and the sub fires just fine. The only problem is... I'm wanting to use keywords like response.cookies("logon").expires = date() -1 and response.redirect "logon.asp". These words are avaiable inside the <% %> tags but not inside the <script></script> tags. Can someone tell me how to achive this goal? Thanks

Rick Watts
 
 
Post #: 1
 
 Re: redirecting with vbscripts based on a button push - 11/16/2001 10:34:02 AM   
  pagooda

 

Posts: 54
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
This trick will do it:

default.asp
============
<html>
<body>
<script language=vbs>
<input type=button onClick="window.location='default.asp?status=doit'"

</script>

<%

if request.querystring("status")="doit" then
response.cookies("logon")="yes"
response.cookies("logon").expires = date() -1
response.redirect "logon.asp"
end if
%>
</body>

</html>

(in reply to rwatts)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> redirecting with vbscripts based on a button push Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts