Subj : Frame.js scrolling
To : Kirkman
From : echicken
Date : Mon Jan 05 2015 01:58 pm
Re: Frame.js scrolling
By: Kirkman to All on Mon Jan 05 2015 12:00:17
Ki> I'm playing around with scrolling content in a frame. Is there a built in
Ki> way to wrap a scroll? In other words, if you reach the end of whatever
Ki> content you .load() into the frame, then the frame displays the beginning
Ki> of that content right after the end of that content. This would be useful
With the exception of loading a .txt file into a frame (which it appears you
could do repeatedly, and it would append to the frame) there isn't a built-in
way to do this. It could be accomplished, though.
See Frame.getData/setData - these would be used to copy characters and
attributes from one cell to another within the frame. The rest would be loops
and math to figure out where to start repeating, where to copy the data to and
from, and where to stop.