Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Controlling Page Scroll Position
- From: fairwinds at eastlink.ca (David Pratt)
- Subject: [Javascript] Controlling Page Scroll Position
- Date: Wed Jun 29 16:06:53 2005
Yes. For sure! For accessibility, I was thinking a condition in my template on my instructions so that they only appear in full on page 1 and are replaced with a hyperlink on subsequent pages. On page 1, I would have a parameter instruction=true and on subsequent pass it as false. The template would display a link instead of full instructions when false. When they click the link, it would pass true to the request and refresh the page to put the instructions above the data as in the first page. This feels much better than the JavaScript approach I was considering and much more sensible. I really appreciate the help since this is a much better solution and only resulted after considering a few options! Thank you Paul and Hassan! Regards, David On Wednesday, June 29, 2005, at 05:39 PM, Paul Novitski wrote: > At 01:07 PM 6/29/2005, David Pratt wrote: >> On the last part. The pages will be pretty much the same height and >> I believe that looking at any more than 20 rows at a time is a bit >> much. > > Ah hah! So Hassan was right-on: the reason you were reaching for the > auto-scroll function was that your page design put the primary content > at the bottom. > > You could simply place the instructions at the bottom of every page, > with a local hyperlink placed at the top of the page. > > Alternatively, put the instructions at the top of the page in a div > whose default state is invisible (either display: none; or visibility: > hidden; depending on page design). When the user clicks on the > Instructions or Help link, javascript makes the block visible. That > way the user can call up help instantly but not be bugged by it. > > (This latter technique might have problems for blind users, as I'm > told that some screen readers won't report a div that's been toggled > from display: none; to display: block;.) > > Paul > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript >
- References:
- [Javascript] Controlling Page Scroll Position
- From: Paul Novitski
- [Javascript] Controlling Page Scroll Position
- Prev by Date: [Javascript] Controlling Page Scroll Position
- Next by Date: [Javascript] regexp help: matching selectors
- Previous by thread: [Javascript] Controlling Page Scroll Position
- Next by thread: [Javascript] Controlling Page Scroll Position
- Index(es):