SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict
    Join Date
    Sep 2002
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting the scroll bar location in a div?

    I curious to know is it possible to set the location of a scroll bar for a div?

    What I am trying to accomplish is I'm adding items to a long div via an AJAX call. I'm having to redraw the contents of the div upon return. I would really like to somehow tell the browser to go to X position (i.e. top bottom middle) in the div instead of always starting at the top. Is there a way to achieve this?

    Thanks.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds like the perfect job for JavaScript.

  3. #3
    SitePoint Addict
    Join Date
    Sep 2002
    Posts
    225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay so how do you do that?

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wish I knew, but I don't mess with JavaScript. You might have better luck if you asked on the JavaScript board.


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
  •