iframe scrolling

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomcat01
Forum Newbie
Posts: 1
Joined: Fri Jul 28, 2006 9:35 am

iframe scrolling

Post 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]
toasty2
Forum Contributor
Posts: 361
Joined: Wed Aug 03, 2005 10:28 am
Location: Arkansas, USA

Post by toasty2 »

I don't think this would be possible with PHP, look to Javascript for your answer.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Yep, this is not something php can do. Javascript is what is needed.
Post Reply