Martin schrieb:
> My problem in short is: How do I make a timer-controlled redirect?
> That is, I want a new page to load after a certain time has passed
> (e.g. 5 seconds). Is this possible? I suppose some java magic could do
> this?

Two basic approaches:

1) Insert a META element in the HEAD section of the HTML page with a
HTTP-Refresh header, like this:

<head>
<meta http-equiv="refresh" content="5; URL=$tg.url('/gallery/images/10">
<!-- ... other header elements ... -->
</head>

2) Use JavaScript to call a function with "windows.setTimeout()" after
some time, which redirects to the next image page by setting
"location.href" to the new URL.

These two techniques should be described in every basic webdesign
tutorial and have nothing to do with TurboGears (apart from that you
have to fill in the URL of the next image page in the page template).
Google around a little bit for "meta refresh", "location.href" and
"setTimeout".


HTH, Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to