This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Scrollable Table

 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I believe you guys can help me out with an idea on achieving what i want

Ok i have a Scrollable Table, achieved using the following CSS code:



And in the JSP, to have a scrollable Table i will have something like..

<div class="tableContainer" >
<table>
...
...
</table>
</div>

I am ok with CSS but not an expert, Is there a way like say if there are 200 rows in table,
I can have the scroll bar some where positioned at 100th row or something like that,...
I mean using CSS, move the scroll bar ?? Can that be done?

Presently when the page loads The table displays from the top rows as expected.. can i have the scrollbar positioned anywhere i want ?

Thanks a lot, I appreciate
[ October 31, 2008: Message edited by: Bear Bibeault ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you probably would have to set the scrollTop with JavaScript when the page loads.

Eric
 
prasad agarwal
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,

Man, thank you soooo much; i got it working as how i wanted
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic