Oh, ok...
Now I understand.
You need to send in those properties that I told you about below.
Then you need to use those as params in putHeaderAndMetaInfo(),
and then:
window.scrollTo(0, 200);
/Robert
-----Original Message-----
From: Ashutosh Shrivastava [mailto:ashutoshs@i...]
Sent: den 23 oktober 2001 17:02
To: javascript
Subject: [javascript] RE: Urgent:Help on scrollbar location
Hi Robert,
I tried with this code and seems some problem is there and it is not
auto scrolling:-
public void putHeaderAndMetaInfo( boolean on, String url,
String time, String title,
boolean OnSelfScroll)
{
htmlAppend( "<head>" );
setAutoRefresh( on, url, time );
htmlAppend(STYLESHEET_PATH);
htmlAppend( "<title>" );
htmlAppend( title );
htmlAppend( "</title>" );
htmlAppend( "</head>" );
if(SelfScrollOn)
htmlAppend( "<body onLoad=\"document.body.scrollTop\">" );
else
htmlAppend( "<body>" );
}
Thanks and Regds,
Ashutosh Shrivastava
-----Original Message-----
From: Nyman, Robert [mailto:Robert.Nyman@i...]
Sent: Tuesday, October 23, 2001 5:05 PM
To: javascript
Subject: [javascript] RE: Urgent:Help on scrollbar location
In IE document.body.scrollTop, in Netscape window.pageYOffset.
/Robert
-----Original Message-----
From: Ashutosh Shrivastava [mailto:ashutoshs@i...]
Sent: den 23 oktober 2001 13:25
To: javascript
Subject: [javascript] Urgent:Help on scrollbar location
Hi,
I require a script help regarding my web page where data is
continuouslly appearing (as and when the page gets auto refreshed at
regular interval).
In this case the scroll bar goes up again as the page refreshes.but our
requirement is such that it should stay at the place where it was before
refresh.
Can any body help me out that how is it possible.? If possible please
send some demo code.
Thanks and Regds,
Ashutosh Shrivastava