Everybody seems to be providing you with methods that just jump right to the end constantly -- via scrollTo() or scroll(). scrollBy() can make things a little more smooth if the content isn't streamed out at a racing speed. You can change the scrollBy value and/or the setInterval interval to make it scroll at just the right pace:
#!perl -w use strict; use CGI; use Time::HiRes qw(sleep); my $q = CGI->new(); print $q->header(), <<'END_HTML'; <html> <head> <title>foobar</title> </head> <body onLoad="window.setInterval('window.scrollBy(0, 3)', 150)"> END_HTML for my $cnt ( 1 .. 1000 ) { print 'This is line #', $cnt, '<br />'; sleep(0.2); }
In reply to Re: Move to the end of an unbuffered CGI web page?
by saskaqueer
in thread Move to the end of an unbuffered CGI web page?
by C_T
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |