[ic] A 'timed' BOUNCE

Kevin Walsh interchange-users@icdevgroup.org
Mon Aug 19 14:46:00 2002


> > I've had no luck identifying how to do this, and I presume it would be 
> > possible with normal ITL, but perhaps not.  What I want to do, is if a 
> > person is bounced to a page, that after a 'timeout' period bounce them 
> > to another page.
> > 
> > I'm pretty sure that I can do this in Perl, with the sleep function and 
> > perhaps calling the ITL tage, but is there a simplier way that I'm just 
> > being 'blind' about?
> > 
>     push @OUT,join '',
>     q`[tag op=header interpolate=1]`,
>     qq`Content-Type: text/html\n`,
>     qq`Refresh: 1; URL=$header`,
>     q`[/tag]`;
> 
In your <head> section, you could add this sort of thing:

    [if scratch autorefresh]
    <meta http-equiv="refresh" content="1; url=[scratch autorefresh]">
    [/if]

Then each page that wants to auto-refresh to another page should only
need to add the following code before calling the template:

    [tmp autorefresh][area otherpage][/tmp]


The [tag] code, suggested above, should work as well, but I think it
may look better written like this:

    [tag op=header interpolate=1]
    Content-Type: text/html
    Refresh: 1; URL=[area somepage]
    [/tag]

Or in [perl] or [calc] etc., using $Tag->tag() and $Tag->area().

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/