Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

autoscroll stream data in an iframe

Status
Not open for further replies.

Wizumwalt

Programmer
Jul 12, 2005
10
Hi, I have this iframe inside an html page, but this iframe does not link to another web page, rather, it's a stream of live event data from a server-side push tech using Orbited (python server of sorts).

<div class="iframe">
<iframe name="ifrm" id="ifrm" src=" width="800" height="300" scrolling="no" frameborder="0">iframes not supported!</iframe>
</div>

My problem is that I would like to scroll the event data as it populates this iframe. Something like, show 10 rows of data and put the latest data at the top of the list. But honestly, I'll take whatever works.

I've been having a really tough time w/ this. Anyone know how to do something like this?
 
Enable scrolling and set the window scroll position for the iframe to be a very very big number (guaranteeing the content stays "anchored" to the bottom of the iframe viewable area).

Just a thought.

Cheers,
Jeff

[tt]Jeff's Blog [!]@[/!] CodeRambler
[/tt]

Make sure your web page and css validates properly against the doctype you have chosen - before you attempt to debug a problem!

FAQ216-6094
 
I have scrolling enabled (though I'd really like to be able to do this w/o showing the scroll bars) but what do you mean by 'set the window scroll position using a big number'? I haven't found any such attrib to an iframe.

Here's what I'm currently using after enabling scrolling ...

<div class="iframe">
<iframe name="ifrm" id="ifrm" src=" width="800" height="300" scrolling="yes" frameborder="0">iframes not supported!</iframe>
</div>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top