Forum Moderators: open

Message Too Old, No Replies

Redirect page

How's it done?

         

mcvoid

6:27 am on May 31, 2006 (gmt 0)

10+ Year Member



Ok, I have a system where I a client sees my web page with a certain stylesheet that is determined by a cookie and they can change what style they want (and thus update the cookie) with a form. When the form is submitted the cookie and stuff change fine, but the style is not updated until a refresh occurs. Soo...

How would I go about making a page what waits like 5 seconds or so and redirects to the home page so they get see the new style they picked right at the home page?

garann

11:12 pm on May 31, 2006 (gmt 0)

10+ Year Member



You can do it with Javascript using

location.href = location.href;

but you have to be careful how you call it, or you get an endless refresh.

mcvoid

6:12 pm on Jun 1, 2006 (gmt 0)

10+ Year Member



Hmm.. I'll give it a try. Thanks.