Auto Refresh and maintain scroll position

S

sb1920alk

Hello,
I have a webpage that refreshes itself every x seconds. This works great.
When I scroll down and then the page refreshes itself, it's now scroll all
the way back up to the top. If I click the refresh button on IE, the scroll
position stays where it is.
Is there any way I force it to keep the current scroll position during the
auto-refresh the same way it does on a manual refresh?

BTW, here's the header code I'm using for the auto refresh.

<meta http-equiv="refresh" content="x" >
where x is the number of seconds between refreshes.

Thanks,
 
S

sb1920alk

I figured it out on my own. Here's my solution for anyone who stumbles upon
this post:

I encasesed the page in question in a new page's iframe. I set marginheight
to 0, scrolling to no, width to 100%, and height to 190% - which fit the
lenght of my page, I will probably need to adjust this setting if the page
gets longer. Now when it refreshes, it's the iframe that refreshes instead of
the page contain the iframe, even though that's all it contains and it's
100%. The only difference I can see is a slightly larger bottom margin, but I
can live with that. The iframe is the only thing the new page contains. I'm
going to rename the orginal page and name the new page in it's place.
 
T

Thomas A. Rowe

Search engine will index both pages, so the page included in the IFrame will still be accessible
outside of the IFrame.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
S

sb1920alk

Ah, good point. It's on a local intranet, so it's probably not a big deal. I
installed the FDSE search engine, so I'll play around with the code that
tells the robot what to follow or not and what to index or not.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top