#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2001
    Location
    New Zealand
    Posts
    638
    Rep Power
    14

    Javascript Scrolling


    Greetings All,

    Is there a way to hop to an Anchor or scroll down the page in Javascript without reloading the page? I have some javascript called from a button which jumps to an Anchor, which is cool.. but when I've added some submit stuff ...?submit=TRUE etc... I now lose it when I jump to the anchor. I just want it to scroll to the point... no page reloading please!!!

    Any advice would be appreciated.


    Thankx,
    Zitan.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    200
    Rep Power
    14
    http://msdn.microsoft.com/library/de...ce/methods.asp

    see the scroll functions

    scroll
    scrollBy
    scrollIntoView
    scrollTo
  4. #3
  5. No Profile Picture
    Senior Citizen
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2001
    Location
    leftcoast
    Posts
    2,019
    Rep Power
    16
    Some code, por favor?
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    May 2001
    Location
    New Zealand
    Posts
    638
    Rep Power
    14
    Greetings Void,

    Thanks for the tip and I'll check it out. I usually just stick to Javascript rather than VB Script or DHTML in this case. I find that with PHP and Javascript I am never left lacking in what I want to do, so I just haven't had a need to use DHTML. I was thinking that I could just open a new window in this case as well, which would also be a good solution.

    Adieu,
    Z.

IMN logo majestic logo threadwatch logo seochat tools logo