What about two divs, side by side, where the first div is set to overflow
hide and the second set to scroll.
The second is basically only as wide as the scrollbar, then use a polling
method to get the visible offsets of the second scroll and update the scroll
position of the first.
I havent tried this, just an idea.
Gareth
On 9/28/07, AlexK <alexkoifman-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
>
> Hi,
>
> I have a large table. A user scrolls to the middle of the table, I
> see the scrollbar in the middle. When periodicalUpdater updates the
> table, I see the scrollbar (in Firefox, stays put in IE) moving to the
> top.
>
> What is the best way to update a table, so I do not lose the focus?
>
> function updateTable(divId) {
> new Ajax.PeriodicalUpdater(divId, url,
> {
> method: ''get'',
> //insertion: Insertion.Top,
> frequency: 1,
> decay: 2
> });
> }
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---