Page 1 of 1

iframe scrolling

Posted: Fri Jul 28, 2006 9:43 am
by tomcat01
feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi All, 

I need help in solving how to automatically scroll content of an iFrame. 
I want th iframe contant to be shown inside the frame without having to manually scroll down to it.. 

example code in iframe

Code: Select all

<?
for( $i = 0; $i < 20; $i ++ ){
usleep(250000);
echo "$i<br>";
ob_flush();
flush();
}
?>
The iframe needs to auto scroll as the counter goes to 19
Hope it makes sence...

Thanks


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

Posted: Fri Jul 28, 2006 11:26 am
by toasty2
I don't think this would be possible with PHP, look to Javascript for your answer.

Posted: Fri Jul 28, 2006 1:36 pm
by feyd
Yep, this is not something php can do. Javascript is what is needed.