This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » Ajax & JavaScript » Jump to bottom of a page ?
Reply

Jump to bottom of a page ?

Stephen Bateman
Member



Since: 24 Jul 2001
Posts: 48
Posted 03 Oct 2001 15:37:24

Can anyone help me with a method (assuming JavaScript) of jumping to the bottom of a page?

I have a page in PHP that lists a set of records retrieved from a MySQL dB in order (so the latest record is at the bottom). This page refreshes every 60 seconds automatically so I need to scroll to the bottom each time.

There must be a way to automate this...

Thanks in advance.

GT

Can anyone help me with a method (assuming JavaScript) of jumping to the bottom of a page?

I have a page in PHP that lists a set of records retrieved from a MySQL dB in order (so the latest record is at the bottom). This page refreshes every 60 seconds automatically so I need to scroll to the bottom each time.

There must be a way to automate this...

Thanks in advance.

GT

Praveen Kumar
Locked
Member



Since: 12 Sep 2001
Posts: 11
Replied 04 Oct 2001 13:49:16
i guess u know how to do the "go to top" link.
it is the same.

incase u do not know.

in the bottom of the page create an anchor link this.

<a name="bottom"></a>

then in the top of your page create a link like this
<a href="#bottom">Go Down(change this to whatever u want)</a>

that's it u are done.

spk100
Stuart Denyer
Member



Since: 02 Nov 2008
Posts: 1
Replied 02 Nov 2008 19:31:21
I know it's an ancient thread, but it has a high result in Google...

Stick something like onload="scrollTo(0,999999);" into the body tag.

(Or just invert the output from the PHP page so that the latest results are at the top?)

Edited by - Denyer on 02 Nov 2008 19:32:30
Alan C
Total freaking Member



Since: 04 May 2006
Posts: 473
Replied 04 Nov 2008 10:21:50
Stuart's suggestion sounds the best to me - I would also say 'Do you need to output ALL the records every 60 seconds' or could you cut it down ?

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency