• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

lazily loaded scrollable table

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I noticed that Eric has done some work on vertically scrollable tables ( http://www10.brinkster.com/a1ien51/staticScrollTable/default.html ).

We've implemented something similar but what I now need is to eliminate the next / previous page of my paginated table and instead have the verticle scrollbar have scroll height based on the total number of records and not simply the displayed records. When the user scrolls vertically, the onscroll callback registered with div should dynamically fetch the new rows from the server basd on the new percentage based position of the vertical scrollbar. In other words, the table should look and behave more like a thick client table.

There is very limited information on the web on how to do this. OpenRico has implemented this (see http://openrico.org/rico/livegrid.page and http://openrico.org/rico/yahoo_search ) but an article describing how to do this without the fancy buffering bells and whistels of openrico would be very helpful. For example the need of a pair of divs etc..

Thanks,
Sanjiv

[ November 23, 2005: Message edited by: Sanjiv Jivan ]
[ November 23, 2005: Message edited by: Sanjiv Jivan ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you looking for the scrolling table or the Ajax implementation of it?

Side note: Darren James is one of the people that helped out on the Ajax In Action book and he works on the Rico project.

Eric
 
Sanjiv Jivan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm just looking for details on how to setup div's for the vertical scroller that displays a scroll height based on total records and not displayed records. Also the helper javascript class should have info on percentage scrolled etc so that one can hook up a callback with the onscroll event that can make whatever ajax call it desires. I looked at the Rico source but it doesnt have too many comments. I'll spend some more time examining it.

Thanks,
Sanjiv
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without looking at the code I would assume that this is what it does.

An initial request is made either when the page is rendered by the server or by Ajax. It says I have XXX rows so it builds a table with XXX rows with no data. It fills in the top values. It then determines the scroll position and relates that to amount of rows scrolled. It then sends a request for the next number of rows each time it is scrolled.

That is my guess.

Eric
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic