|
 |
javascript thread: Scrolling windows from asp
Message #1 by "Margaret Wright" <margaretwright@t...> on Sat, 17 Nov 2001 15:25:12 -0000
|
|
Unless I missed the point, why do you not put a a routine in the onLoad
event of the body tag that goes to a named location at the end of the page.
Add a tag: <a name="end"></a> after your last entry then in body tag use
onLoad="JavaScript:document.anchors['end']"
and that would work (I just tried it)
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_0011_01C16F7C.0CC94770
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hello
> I generate a very long list of actions taken (emailing. changing
> security for users etc) from server-side javascript to client. I would
> like to ensure the last line of the page is in view, so that it's easy
> for the user to watch the progress of any particular job. I need,
> therefore, to scroll to the bottom of the page each time a line is
> written to the client - I can't find a way to do this, especially as
> it's difficult to generate client-side javascript from within
> server-side javascript (I keep getting error messages when I try). Does
> anyone know a way of doing this?
> Thanks
> Margaret Wright
>
>
> ------=_NextPart_000_0011_01C16F7C.0CC94770
> Content-Type: text/html;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META content=3D"text/html; charset=3Diso-8859-1"
> http-equiv=3DContent-Type>
> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR>
> <STYLE></STYLE>
> </HEAD>
> <BODY bgColor=3D#ffffff>
> <DIV><FONT face=3DArial size=3D2>Hello</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>I generate a very long list of
> actions taken
> (emailing. changing security for users etc) from server-side javascript
> to
> client. I would like to ensure the last line of the page is in view, so
> that
> it's easy for the user to watch the progress of any particular job. I
> need,
> therefore, to scroll to the bottom of the page each time a line is
> written to
> the client - I can't find a way to do this, especially as it's difficult
> to
> generate client-side javascript from within server-side javascript (I
> keep
> getting error messages when I try). Does anyone know a way of doing
> this?</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
> <DIV><FONT face=3DArial size=3D2>Margaret Wright</FONT></DIV>
> <DIV> </DIV></BODY></HTML>
>
> ------=_NextPart_000_0011_01C16F7C.0CC94770--
>
|
|
 |