SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist dev_cw's Avatar
    Join Date
    Dec 2005
    Posts
    454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Keeping the location of a 'drag-able' box between page loads

    Hello,

    I am trying to make a floating "drag-able" navigation box that will seem not to reload between pages. I hope this make sense

    The navigation is in a floating box that can be dragged as well as collapsed. And when you go from page to page the box will remain in the same location and in the same state (open or collapsed) ultimately creating the illusion that the nav box doesn't reload. Can this be done with JS? If so is the way to maintain the location with cookies or is there another way?

    An example can be found at http://www.lineto.com/
    "You can just hang outside in the sun all day tossing a ball around...
    Or you can sit at your computer and do something that matters."
    - Cartman

  2. #2
    SitePoint Enthusiast briercan's Avatar
    Join Date
    Nov 2006
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cookies would be the only way I could think of without using a server language/db
    thisplaceiknow.com - Search for and submit real-life places.
    (Those are the ones that don't start with http://)

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2006
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yup, onmouseup after the user drags the box, write a cookie.


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
  •