Auto Refresh and maintain scroll position

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,
none [ Mi, 09 Januar 2008 02:30 ] [ ID #1903461 ]

RE: Auto Refresh and maintain scroll position

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.

"sb1920alk" wrote:

> 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,
none [ Mi, 09 Januar 2008 20:28 ] [ ID #1903499 ]

Re: Auto Refresh and maintain scroll position

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
==============================================


"sb1920alk" <none [at] spambad.com> wrote in message
news:CF361CED-499F-4527-AC41-E623D727434B [at] microsoft.com...
>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.
>
> "sb1920alk" wrote:
>
>> 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,
tarowe [ Mi, 09 Januar 2008 23:22 ] [ ID #1903506 ]

Re: Auto Refresh and maintain scroll position

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,

"Thomas A. Rowe" wrote:

> 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
> ==============================================
>
>
> "sb1920alk" <none [at] spambad.com> wrote in message
> news:CF361CED-499F-4527-AC41-E623D727434B [at] microsoft.com...
> >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.
> >
> > "sb1920alk" wrote:
> >
> >> 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,
>
>
>
none [ Mi, 09 Januar 2008 23:38 ] [ ID #1903507 ]
Microsoft » microsoft.public.frontpage.client » Auto Refresh and maintain scroll position

Vorheriges Thema: stock photos
Nächstes Thema: How can I pan across a photo on web page?