Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Scroll a table by multiple rows at a time?

Reply
Thread Tools

Scroll a table by multiple rows at a time?

 
 
Martin
Guest
Posts: n/a
 
      09-06-2012
I have a table with several hundred rows of data in it. The actual
number of rows will always be a multiple of 16. The table would be
sized to display 16 rows and I would like for the user to be able to
scroll the table 16 rows at a time.

I'm thinking maybe to have "scroll up" and a "scroll down" buttons
next to the table that the user could click on.

Any thoughts on how I might do this?
 
Reply With Quote
 
 
 
 
TK
Guest
Posts: n/a
 
      09-06-2012
On 9/6/2012 6:44 AM, Martin wrote:
> I have a table with several hundred rows of data in it. The actual
> number of rows will always be a multiple of 16. The table would be
> sized to display 16 rows and I would like for the user to be able to
> scroll the table 16 rows at a time.
>
> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
> next to the table that the user could click on.
>
> Any thoughts on how I might do this?
>

I am not following you. There is a scroll bar on the browser window
that will accomplish what I think you are saying. Please clarify.

--
TK ~ aka Terry Kimpling
http://wejuggle2.com/
The 3 ages of man are, youth, adult, and "gee, you look good!" - Red Skelton
 
Reply With Quote
 
 
 
 
Martin
Guest
Posts: n/a
 
      09-06-2012
On Thu, 06 Sep 2012 06:58:25 -0500, TK <> wrote:

>On 9/6/2012 6:44 AM, Martin wrote:
>> I have a table with several hundred rows of data in it. The actual
>> number of rows will always be a multiple of 16. The table would be
>> sized to display 16 rows and I would like for the user to be able to
>> scroll the table 16 rows at a time.
>>
>> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>> next to the table that the user could click on.
>>
>> Any thoughts on how I might do this?
>>

>I am not following you. There is a scroll bar on the browser window
>that will accomplish what I think you are saying. Please clarify.


Yes, there is normally a scroll bar that "slides" the table rows up &
down however much the user wants - I plan to hide that. What I want to
do is "snap" the table rows up or down 16 rows at a time. The effect
would be that the user would be "paging" through the list 16 rows at a
time.


 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      09-06-2012
Martin wrote:

> On Thu, 06 Sep 2012 06:58:25 -0500, TK <> wrote:
>
>>On 9/6/2012 6:44 AM, Martin wrote:
>>> I have a table with several hundred rows of data in it. The actual
>>> number of rows will always be a multiple of 16. The table would be
>>> sized to display 16 rows and I would like for the user to be able to
>>> scroll the table 16 rows at a time.
>>>
>>> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>>> next to the table that the user could click on.
>>>
>>> Any thoughts on how I might do this?
>>>

>>I am not following you. There is a scroll bar on the browser window
>>that will accomplish what I think you are saying. Please clarify.

>
> Yes, there is normally a scroll bar that "slides" the table rows up &
> down however much the user wants - I plan to hide that.


You can't hide the browser scroll bar. That belongs to me, not you, and is
not a part of your web page.

> What I want to
> do is "snap" the table rows up or down 16 rows at a time. The effect
> would be that the user would be "paging" through the list 16 rows at a
> time.


You probably want something like this:

<http://www.imaputz.com/cssStuff/bigFourVersion.html>
<http://imar.spaanjaars.com/357/a-scrollable-table-with-a-fixed-header>

Make it so that your 16 rows fits the height of the table. (You could also
add a fixed footer to the table.)

--
-bts
-This space for rent, but the price is high
 
Reply With Quote
 
Neil Gould
Guest
Posts: n/a
 
      09-06-2012
Martin wrote:
> I have a table with several hundred rows of data in it. The actual
> number of rows will always be a multiple of 16. The table would be
> sized to display 16 rows and I would like for the user to be able to
> scroll the table 16 rows at a time.
>
> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
> next to the table that the user could click on.
>
> Any thoughts on how I might do this?
>

One sure way to do this is to populate the table from a database via
server-side scripting. The table would only have 16 rows, and your "up and
down" buttons would load the previous or next set of data. This approach
would also be tolerant of folks resizing their viewport if the height of the
table set at 100%.

--
best regards,

Neil



 
Reply With Quote
 
richard
Guest
Posts: n/a
 
      09-14-2012
On Thu, 6 Sep 2012 09:44:06 -0400, Neil Gould wrote:

> Martin wrote:
>> I have a table with several hundred rows of data in it. The actual
>> number of rows will always be a multiple of 16. The table would be
>> sized to display 16 rows and I would like for the user to be able to
>> scroll the table 16 rows at a time.
>>
>> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>> next to the table that the user could click on.
>>
>> Any thoughts on how I might do this?
>>

> One sure way to do this is to populate the table from a database via
> server-side scripting. The table would only have 16 rows, and your "up and
> down" buttons would load the previous or next set of data. This approach
> would also be tolerant of folks resizing their viewport if the height of the
> table set at 100%.


And the constant refreshing of the page just to scroll a few lines would
drive away the customers.

A better way might be to display a set of rows at a time.
Using a bit of javascript to show/hide each sub table.
That way, the full table is already on the page and the page does not need
to be refreshed.
 
Reply With Quote
 
Neil Gould
Guest
Posts: n/a
 
      09-14-2012
richard wrote:
> On Thu, 6 Sep 2012 09:44:06 -0400, Neil Gould wrote:
>
>> Martin wrote:
>>> I have a table with several hundred rows of data in it. The actual
>>> number of rows will always be a multiple of 16. The table would be
>>> sized to display 16 rows and I would like for the user to be able to
>>> scroll the table 16 rows at a time.
>>>
>>> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>>> next to the table that the user could click on.
>>>
>>> Any thoughts on how I might do this?
>>>

>> One sure way to do this is to populate the table from a database via
>> server-side scripting. The table would only have 16 rows, and your
>> "up and down" buttons would load the previous or next set of data.
>> This approach would also be tolerant of folks resizing their
>> viewport if the height of the table set at 100%.

>
> And the constant refreshing of the page just to scroll a few lines
> would drive away the customers.
>

Not if it's done properly. The only thing that would change in most browsers
would be the data in the table, and the rest of the page would appear to be
static. BTDT many times.

> A better way might be to display a set of rows at a time.
> Using a bit of javascript to show/hide each sub table.
> That way, the full table is already on the page and the page does not
> need to be refreshed.
>

And, customers with JavaScript disabled would be staring at a blank, or
worse. That's a "better way"???

--
best regards,

Neil



 
Reply With Quote
 
Gene Wirchenko
Guest
Posts: n/a
 
      09-14-2012
On Thu, 06 Sep 2012 04:44:14 -0700, Martin <>
wrote:

>I have a table with several hundred rows of data in it. The actual
>number of rows will always be a multiple of 16. The table would be
>sized to display 16 rows and I would like for the user to be able to
>scroll the table 16 rows at a time.
>
>I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>next to the table that the user could click on.
>
>Any thoughts on how I might do this?


Please do not do this.

My browser has scrollbars so that I can scroll through a page. It
also has Find so I can look for content on the page. If you only
present a smidgin of the data, it makes searching labourious.

Here is an example of how this affects the user.

I follow Patricia Wrede's blog -- she is a fantasy author -- and
in one article, she pointed to another blog. She did not point to a
specific blog entry, just the blog. Unfortunately, that blog displays
five entries at a time and has bad navigation. I did not see any way
to skip to a different page (except the previous). I was going to
have to scroll back through several months of entries to find the one
I wanted.

I ended up giving up on it.

That is probably not the result that you want.

Sincerely,

Gene Wirchenko
 
Reply With Quote
 
Lewis
Guest
Posts: n/a
 
      09-15-2012
In message <k301vt$u5t$>
Neil Gould <> wrote:
> richard wrote:
>> On Thu, 6 Sep 2012 09:44:06 -0400, Neil Gould wrote:
>>
>>> Martin wrote:
>>>> I have a table with several hundred rows of data in it. The actual
>>>> number of rows will always be a multiple of 16. The table would be
>>>> sized to display 16 rows and I would like for the user to be able to
>>>> scroll the table 16 rows at a time.
>>>>
>>>> I'm thinking maybe to have "scroll up" and a "scroll down" buttons
>>>> next to the table that the user could click on.
>>>>
>>>> Any thoughts on how I might do this?
>>>>
>>> One sure way to do this is to populate the table from a database via
>>> server-side scripting. The table would only have 16 rows, and your
>>> "up and down" buttons would load the previous or next set of data.
>>> This approach would also be tolerant of folks resizing their
>>> viewport if the height of the table set at 100%.

>>
>> And the constant refreshing of the page just to scroll a few lines
>> would drive away the customers.
>>

> Not if it's done properly. The only thing that would change in most browsers
> would be the data in the table, and the rest of the page would appear to be
> static. BTDT many times.


>> A better way might be to display a set of rows at a time.
>> Using a bit of javascript to show/hide each sub table.
>> That way, the full table is already on the page and the page does not
>> need to be refreshed.
>>

> And, customers with JavaScript disabled would be staring at a blank, or
> worse. That's a "better way"???


What percentage of users have JAvascript disabled? The web simply does
not work without it.

--
"I am enclosing two tickets to the first night of my new play; bring a
friend.... if you have one." - GB Shaw to Churchill "Cannot possibly
attend first night, will attend second... if there is one." - Winston
Churchill, in response.
 
Reply With Quote
 
Neil Gould
Guest
Posts: n/a
 
      09-15-2012
Lewis wrote:
> Neil Gould <> wrote:
>> richard wrote:
>>> A better way might be to display a set of rows at a time.
>>> Using a bit of javascript to show/hide each sub table.
>>> That way, the full table is already on the page and the page does
>>> not need to be refreshed.
>>>

>> And, customers with JavaScript disabled would be staring at a blank,
>> or worse. That's a "better way"???

>
> What percentage of users have JAvascript disabled? The web simply does
> not work without it.
>

You'd be surprised, apparently. A good website design does not require that
which can't be assured, especially when the information is important to the
customer.

--
best regards,

Neil



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
add table rows dynamically and scroll leiņo Javascript 7 10-31-2006 09:22 AM
script for moving rows up and down and traverse thru rows of HTML table Subba Rao via DotNetMonster.com ASP .Net 0 03-19-2005 06:46 AM
prevent mouse scroll to scroll in a dropdownlist nicholas ASP .Net 0 12-07-2004 11:26 AM
Table/table rows/table data tag question? Rio HTML 4 11-05-2004 08:11 AM
Help ASP; get last inserted value from one table, insert multiple rows in another table. PT ASP General 1 10-07-2004 07:27 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57