"Please Wait" Scrolling Off Screen

"Please Wait" Scrolling Off Screen

am 14.04.2008 17:49:03 von JohnWalker

Hi,

I have a webpage designed with asp.net 2.0.

Is there a way to display a "please wait" message to the screen horizontally
centered and veritcally 20px from the VISIBLE top of the page, regardless of
what kind of scrolling the user has done?

I am currently displaying a "please wait" message (the DIV section shown
below, which i'm showing/hiding) when the user clicks save, but the user is
sometimes scrolled down the page so the "please wait" message will not be
visible to the user.








Please Wait...




Thanks!
John

Re: "Please Wait" Scrolling Off Screen

am 14.04.2008 23:37:22 von Anthony Jones

"John Walker" wrote in message
news:61207647-2829-4D43-B634-18C0D4461B11@microsoft.com...
> Hi,
>
> I have a webpage designed with asp.net 2.0.
>
> Is there a way to display a "please wait" message to the screen
horizontally
> centered and veritcally 20px from the VISIBLE top of the page, regardless
of
> what kind of scrolling the user has done?
>
> I am currently displaying a "please wait" message (the DIV section shown
> below, which i'm showing/hiding) when the user clicks save, but the user
is
> sometimes scrolled down the page so the "please wait" message will not be
> visible to the user.
>
>
>


>
>
>
>
>
>
Please Wait...

>

>
>

Assuming the DIV above is a child of the BODY element (which may or may not
be scrolled by the user). Take a look at this:-

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">







Repeat this content








I've simplified the box using some CSS. Note the key point is to use the
scrollTop property of the element that is being scrolled. Which in this
case is the entire HTML document which is retrieved as the parentNode of the
body.


--
Anthony Jones - MVP ASP/ASP.NET