Log in

View Full Version : Redirect after 'x' seconds


SavSin
06-10-2012, 01:34 AM
Ok so i have tried a few different methods to no success.

The meta refresh on the top of the template doesn't work for me.

So here is what I am trying to do.

on a custom page. i give the use a set amount of fields to add information once they hit submit . If its successful i have a lil box green saying good job ... in error its a red box telling them the error.

I need to automatically redirect back to the main page... im trying to look into the vb templates and pages for like after post it redirects back.

kh99
06-10-2012, 09:55 AM
The vb standard redirect template uses this:

<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />

SavSin
06-10-2012, 04:44 PM
The vb standard redirect template uses this:

<meta http-equiv="Refresh" content="2; URL={vb:raw url}" />

weird when i stick that up into my header on the template it fails to redirect and i just sit on that screen.

kh99
06-11-2012, 12:25 PM
I haven't done any testing (and it may be a browser-dependent thing), but it could be that it needs to be inside the <head> tags of the document (which means the headinclude template, if you're using the vb templates).