Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Public Cookies
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Public Cookies

 Post Reply Post Reply Page  <1234>
Author
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:17pm
The examples on that page are in VBScript. I need them in Javascript since the cookie should be set or reset when the user clicks on a link (and then reload the page).
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:35pm

not sure why you don't think you cannot set the cookie in VBScript then "reload" (using Response.Redirect) on the server side... i can guarentee you'll be using "the same cookies" then

Contribute to the working anarchy we fondly call the Internet
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:37pm
That's how I was doing it... but  on pages that uses a form, the redirect does not work (because it looses all the form's information)
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:48pm
umm. if you are having your users click on an <a> tag, you would be losing the form information anways, right?    unless you have some other javascript handling that part of it
Contribute to the working anarchy we fondly call the Internet
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 9:53pm
Exactly... that's why I turned to Java. To change the cookie and do a "window.location.reload()" instead of a redirect. This way the form's informration is not missing. The problem is that it seems that these cookies are saved for this page and not for any otihers.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2003 at 10:09pm
There's lots of good sample code for handling cookies, forms, redirection, etc. in javascript at http://developer.irt.org/script/script.htm

Edited by dpyers

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Mc Brain View Drop Down
Senior Member
Senior Member


Joined: 11 June 2002
Location: Argentina
Status: Offline
Points: 223
Post Options Post Options   Thanks (0) Thanks(0)   Quote Mc Brain Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 5:45am
This page http://developer.irt.org/script/1368.htm states that the default path is "/". However, I cannot make it work. Any ideas how to solve this?
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2003 at 6:26am

man, just figure out a way to pull it off in VBScript.. you could have had it done way by now.....

that way you are using apples and apples

Contribute to the working anarchy we fondly call the Internet
Back to Top
 Post Reply Post Reply Page  <1234>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.