Flush()....go to bottom of page (might be 0T)

From: Date: Sat, 07 Aug 2004 22:23:30 +0000
Subject: Flush()....go to bottom of page (might be 0T)
Groups: php.general 
Request: Send a blank email to php-general+get-193099@lists.php.net to get a copy of this message
Hi, I am using flush() and ob_flush() in one of my scripts and its working great.., just one problem, as it keeps outputting xxxxx on the screen the page just stays on top...is there anyway (I am not sure via php...but maybe JavaScript? ) to make the browser "follow" the output below eg: keep the scroll below right next to the text. This is what i am using: for($i=0; $i<1000;$i++) { echo "something<br>"; echo str_repeat(" ", 256); flush(); ob_flush(); sleep(1); } Thanks, Mag ===== ------ - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail

« previous php.general (#193099) next »