Gossamer Forum
Home : Products : Links 2.0 : Customization :

Redirect the user to history(-2) after voting.

Quote Reply
Redirect the user to history(-2) after voting.
Hi guru's!!

A simple nut to crack for you!

i want to redirect the user from the 'thank you page' after voting to the page he/she was before voting.

usualy I use a refresh like: javascript:history.go(-2)
and a time like 3 seconds (how long does reading "Thank you" take :-))

the problem is: it does't work (now that's a surprise, if it's worked this message would be called: redirect user after vote MOD).
Hehehe, sorry, im a bit humorous now!

But could someone tell me hoe to do this 'thing'??? I don't want to include the text: "thank you for voting: please press 'back' to times becouse i don't know how i could take you back after 3 seconds"

or:

"Thank you for voting, now stare at the 'o' in "voting" and after 3 second you'll see some realy cool things... if you don't see realy cool things you're not staring enough!!"

hehe, i told you! im a bit humorous now! :-))

ps. did you see that thing when you stared at the 'o' in "Gossamer Threads, Inc"?? I did!!! :-)))
Quote Reply
Re: Redirect the user to history(-2) after voting. In reply to
Well,
I have implemented your exact same idea, but I use templates (everything seems to work better with templates, for me at least). Are you using templates? If so, I will email you the code when I get home (sometime after midnight), or I'll post it here.

Untill then,
Mike
Quote Reply
Re: Redirect the user to history(-2) after voting. In reply to
I use...

Code:
<A HREF="javascript:history.back();history.back();">Return to previous resource</A>
Quote Reply
Re: Redirect the user to history(-2) after voting. In reply to
i'm not javascript freak.. but i think it's

history.back(2)
Quote Reply
Re: Redirect the user to history(-2) after voting. In reply to
Try putting this in <Head>
Code:
<!--
function autoChange()
{
var timeID = setTimeout("location.href='javascript:history.back();history.back()';", 5000)
}

//-->
</SCRIPT>
and replace the <Body> tag with
Code:
<body onLoad="autoChange()">