On Thu, Apr 01, 2004 at 02:37:14PM -0500, Kleindenst, Fred wrote:
> I want to set the header of an HTML page I am returning so that
> it contains a meta refresh going to another runmode.
>
> Why? I plan to display page 1 that contians an interstitial
> message explaining a long load time for page 2.
>
> Can anyone share their one line of code that does this, before
> I figure it out?
If you want a refresh directive in your HTML page itself, use
something like the following in the <HEAD> section of your
template:
<META HTTP-EQUIV=Refresh CONTENT="10; URL=http://domain.com/my.cgi?rm=new_run_mode">
See http://www.htmlhelp.com/reference/html40/head/meta.html for
details.
If you want a refresh directive in your HTTP header, use
something like this:
sub somerunmode {
my $self= shift;
my $url= 'http://domain.com/my.cgi?rm=new_run_mode';
$self->header_props( -refresh => "10; URL=$url" );
...
}
HTH,
-E
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/suppressed/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.