PDA

View Full Version : Text not scrolling to last message



sndy183
07-02-2008, 07:46 AM
Hello!

I have a web application where status messages are displayed in a small area of screen. I need the text to scroll down to the last message as the status messages are being added. But only the first messages are shown and the user has to manually scroll down to get the rest of the messages.

Does anyone know how i can show the last messages automatically?

The messages are being generated by JavaScript and i used css for the scroll (overflow:auto)

Any help will be much appreciated.
Thanks!

jscheuer1
07-02-2008, 08:05 AM
Please post a link to the page on your site that contains the problematic code so we can check it out.

clueful
07-02-2008, 12:57 PM
Does anyone know how i can show the last messages automatically?

The messages are being generated by JavaScript and i used css for the scroll (overflow:auto)Each time you write more text, set the div's scrollTop property to its scrollHeight property.