Click to See Complete Forum and Search --> : Prevent Scroll bars from reset on refresh.


NoodleHed
01-14-2003, 11:01 PM
Jello all,

I've been putting together a web based reservations app using ASP and VBscript for the server side. I’ve got an annoying problem that hopefully an ace will have a solution for.

Once an administrator logs into the utility, they are presented with a basic list that of active reservations. Clicking on the list items display details in a separate layer.. yadayadayada.. What’s annoying is this.. I have the page set to auto-refresh once a minute so that it can tap SQL Server to check for new data updates. So if you happen to be scrolling down a painfully long list of trips at the time the page refreshes your position in the list gets reset back up to the top of the page. :( Is there anyway to prevent this? Keep a scrolled page/layer/list/etc.. in its current position without relying on the browsers cache? Or to set some sort of focus feature that will initially present an item that is NOT necessarily the first in the list? Perhaps something similar to the way an ordered list works when using a basic <form> and the "Initially Selected" argument?

Useful comments and suggestions much appreciated!! Rewards include public praise and possibly worship :) .

Thanks in advance,

-NH

Nicodemas
01-15-2003, 01:01 AM
Hmm... maybe not complete plausible, but here's my idea.

If you could set up anchor tags at the prevalent areas, and keep the name of the prevalent area the users are in stored in a variable in the querystring... then, when the page refreshes, you could write the name of the prevalent into the refresh code, so that it links to that area... ?

That is... if you're using meta refreshes.. maybe.. I have no idea :)

Just a thought.

NoodleHed
01-15-2003, 06:06 AM
Ahhhhhh! Now that’s an interesting direction I hadn't thought of :). Think you may just be on to something there! Will play with it and let you know how I make out.

Thanks Nicodemas!

-NH

PS Additional Ideas/Solutions/cash donations certainly welcomed!