It's taking abysmally long to refresh, however. I tried setting the time to '30' and it took several minutes (I stopped timing after two minutes and noticed it refreshing later). Shouldn't this generate the same result as <meta http-equiv="Refresh" content="100">?print $q->header( -type => 'text/html', -expires => '-1d', -pragma => 'no-cache', -refresh => '100' ), $q->start_html( -title => 'Some Company's Bond Ticker', -bgcolor => '#00092A', -background => '../images/i-4-bg.gif', -onLoad => 'initSymbols()', -script => $script, -style => { -code => $css } );
The headers it generates look like this:
I'm using IE 5.5, and the page in question is bond ticker in a frame running along the bottom of a Page. The page also has a bit of JavaScript, so I wonder if that has any effect -- perhaps throwing the browser's timing off? Also, if this is not a reliable method of refreshing the Web page, can anyone make any suggestions?Expires: Thu, 05 Oct 2000 23:10:04 GMT Date: Fri, 06 Oct 2000 23:10:04 GMT Pragma: no-cache Refresh: 100 Content-Type: text/html
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just go the the link and check out our stats.
In reply to Refreshing a Web page via Perl by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |