Results 1 to 3 of 3

Thread: Text not scrolling to last message

  1. #1
    Join Date
    Jul 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text not scrolling to last message

    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!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2008
    Posts
    128
    Thanks
    0
    Thanked 17 Times in 16 Posts

    Default

    Quote Originally Posted by sndy183 View Post
    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •