SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2004
    Location
    Bangalore
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Retain DHTML state (persistance) ???

    Hi all,

    In my page I have couple of DIVs which are hidden when the page loads.
    User can show or hide these DIVs.
    If a user toggles a div (in page1) so that it is shown and
    goes to Page2 and
    comes back to Page1
    all DIVs are hidden (i.e. initial state).
    (I have attached page1 and page2, so that you can try what I have said above)

    How can I save the state of DHTML?

    One option I know is to use cookies. One of my friend told me that IE supports DHTML Persistance (but dosen't know how to implement it).

    Any help will be appreciated.

    - Kiran Makam
    Attached Files Attached Files

  2. #2
    SitePoint Addict
    Join Date
    May 2004
    Location
    Europe
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    http://msdn.microsoft.com/workshop/a...e/overview.asp

    The second example is probably what you want.

  3. #3
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here's a similar demo.


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
  •