Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #16621

Re: Scroll a <table> Up/Down a bit ?

From Dr J R Stockton <reply1241@merlyn.demon.co.uk.invalid>
Newsgroups comp.lang.javascript
Subject Re: Scroll a <table> Up/Down a bit ?
Date 2012-10-13 19:42 +0100
Organization Home
Message-ID <blAORbMcYbeQFw7I@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <adr268Fp05cU1@mid.individual.net>

Show all headers | View raw


In comp.lang.javascript message <adr268Fp05cU1@mid.individual.net>, Fri,
12 Oct 2012 11:26:31, Mel Smith <med_cutout_syntel@aol.com> posted:

>    So, after my scrollIntoView() operation, how do I 'scroll up/down a bit'
>programmatically ?

With sufficient desperation, you could try embedding the Table in an
iframe embedded in your existing page, which might allow you in effect
to use the scrolling functions of the iframed body element to scroll
just the Table.  Untested.

Alternatively, you might be able to put at the beginning of the Table a
row whose height in pixels is controlled by CSS & JavaScript; then
scroll the Table as you already do to the right region and then ease it
up or down by altering the first row height by a few pixels.

Except that you should use not px but em or ex for those, since your
valuable readers might be using the esteemed Zoom Text Only mode of
Firefox & (IIRC) Safari.

-- 
 (c) John Stockton, nr London, UK.  For Mail, see Home Page.  Turnpike, WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 11:26 -0600
  Re: Scroll a <table> Up/Down a bit ? Danny <dann90038@gmail.com> - 2012-10-12 11:07 -0700
    Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 13:07 -0600
      Re: Scroll a <table> Up/Down a bit ? Danny <dann90038@gmail.com> - 2012-10-12 13:04 -0700
        Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-12 15:12 -0600
          Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-13 10:10 -0600
    Re: Scroll a <table> Up/Down a bit ? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2012-10-12 21:08 +0200
  Re: Scroll a <table> Up/Down a bit ? Dr J R Stockton <reply1241@merlyn.demon.co.uk.invalid> - 2012-10-13 19:42 +0100
    Re: Scroll a <table> Up/Down a bit ? "Mel Smith" <med_cutout_syntel@aol.com> - 2012-10-14 08:45 -0600

csiph-web