possible viewport question, need to control what portion of div contents appear when overflow:auto a

Discussion in 'Javascript' started by Jake Barnes, Sep 5, 2007.

  1. Jake Barnes

    Jake Barnes Guest

    I searched comp.lang.javascript on Google Groups but I didn't find an
    answer when I searched for "viewport" or "viewport div" or any
    combination of words using "viewport" so now I think I'm searching for
    the completely wrong thing. Perhaps someone can tell me what I should
    be searching for?

    I've got a div with overflow set to "auto":

    overflow:auto

    I'm using it for an Ajax chat application I'm trying to build. The div
    fills up with messages, then overflows. The new messages, which I want
    the user to see, appear at the bottom of the div. I don't know how to
    force the div to scroll down, so the user will always see what is at
    the bottom of that div.

    If you want, you can try to see what I'm talking about, though
    everything is still in a rough form. Try to go to this page:

    http://www.bluewalldev.com/secondroad/groups.php?groupId=6

    Login with this info:

    user: person
    password: test

    I wish I could tell you where the login screen will be, the but the
    graphic designer is working on the site right now and everything
    changes every hour.

    Logging in will take you to another page, you'll have to hit the back
    button to get to the "chat" room.

    Thanks to anyone who takes the time to answer.
     
    Jake Barnes, Sep 5, 2007
    #1
    1. Advertisements

  2. Jake Barnes

    Jake Barnes Guest

    Sorry, cancel this post. I just posted it and then, finally, after a
    lot of searching, I found a post that answered all my questions:

    http://groups.google.com/group/comp...7c8b965f4bf?lnk=gst&q=overflow+scroll&rnum=1#


    On Sep 5, 6:37 pm, Jake Barnes <> wrote:
    > I searched comp.lang.javascript on Google Groups but I didn't find an
    > answer when I searched for "viewport" or "viewport div" or any
    > combination of words using "viewport" so now I think I'm searching for
    > the completely wrong thing. Perhaps someone can tell me what I should
    > be searching for?
    >
    > I've got a div with overflow set to "auto":
    >
    > overflow:auto
    >
    > I'm using it for an Ajax chat application I'm trying to build. The div
    > fills up with messages, then overflows. The new messages, which I want
    > the user to see, appear at the bottom of the div. I don't know how to
    > force the div to scroll down, so the user will always see what is at
    > the bottom of that div.
    >
    > If you want, you can try to see what I'm talking about, though
    > everything is still in a rough form. Try to go to this page:
    >
    > http://www.bluewalldev.com/secondroad/groups.php?groupId=6
    >
    > Login with this info:
    >
    > user: person
    > password: test
    >
    > I wish I could tell you where the login screen will be, the but the
    > graphic designer is working on the site right now and everything
    > changes every hour.
    >
    > Logging in will take you to another page, you'll have to hit the back
    > button to get to the "chat" room.
    >
    > Thanks to anyone who takes the time to answer.
     
    Jake Barnes, Sep 6, 2007
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. alanborne
    Replies:
    1
    Views:
    820
    David Dorward
    Mar 16, 2005
  2. Mel
    Replies:
    2
    Views:
    24,182
    the idiot
    Apr 8, 2005
  3. shaileshhp
    Replies:
    0
    Views:
    4,065
    shaileshhp
    Sep 4, 2006
  4. Matt White

    DIV inside DIV overflow issue

    Matt White, Feb 25, 2009, in forum: HTML
    Replies:
    6
    Views:
    3,643
    Chaddy2222
    Feb 26, 2009
  5. Replies:
    2
    Views:
    222
  6. Dave Hemmings

    Move large image inside of div viewport

    Dave Hemmings, Aug 11, 2005, in forum: Javascript
    Replies:
    0
    Views:
    170
    Dave Hemmings
    Aug 11, 2005
  7. yellowtek
    Replies:
    1
    Views:
    269
    Matt Kruse
    Sep 11, 2006
  8. Martin
    Replies:
    4
    Views:
    456
    Martin
    Feb 18, 2010
Loading...