Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I send to a frame and scroll to the bottom? 1

Status
Not open for further replies.

asm01asm

Programmer
Mar 21, 2004
3
CA
How can I send a page to a frame and at the same time scroll to the bottom of the page. The page is being sent by a servelet with the following call: appletcontext.showDocument(URL, fame). In Netscape 4 the following URL worked:

Now that we have upgraded to Mozilla 1.4 this link generates a server error. If I remove the #bottom from the URL, the page displays.

If I move the #bottom to the end of the link, I do not get an error, but the frame does not load in either Mozilla or IE6. In Mozilla I can update the frame (right click ThisFrame>ReloadFrame) and it loads correctly and scrolls. This is on an intranet.
 
in the document that you want to scroll, put this in onload:

window.scrollTo(0, document.body.scrollHeight);



=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top