Locking the scrole bar

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

I have a page that has a link to its self i.e. reloads the page. I have this because I have random content on the page and reloading it will change the content. What I want to know is is there a way to keep the page at the same point not loading it back to the top every time it loads. Mabe javascript?
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23455
  • Loc: Woodbridge VA

Post 3+ Months Ago

yes there is using the scroll position
http://blogs.x2line.com/al/articles/156.aspx
  • ScienceOfSpock
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1893
  • Loc: Las Vegas

Post 3+ Months Ago

Have you thought about using ajax to reload the random content instead of reloading the entire page? Seems like reloading the page would get annoying to the users after a while.
  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England

Post 3+ Months Ago

I dont know any ajax at all thats why ;o)

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.