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 ?

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
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 Sat, 13 Oct 2012 19:42:36 +0100
Organization Home
Lines 25
Message-ID <blAORbMcYbeQFw7I@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <adr268Fp05cU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain;charset=us-ascii
Injection-Info mx04.eternal-september.org; posting-host="530603207bb5dc63eadbc45c88da0024"; logging-data="5538"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FXVuXerrvfXzv5pVqrJedfk20Hho+pv8="
User-Agent Turnpike/6.05-S (<hg+ExxAgcsscjA9uK+8bCnc9V5>)
Cancel-Lock sha1:ZCR0Ls2wGGDO2O4amPKb1AJxX5M=
Xref csiph.com comp.lang.javascript:16621

Show key headers only | 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