keep state of radio and checkboxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • colinod
    Contributor
    • Nov 2007
    • 347

    keep state of radio and checkboxes

    I have apage with a large for to select radio stations and add up totals depending on selections, what i want to be able to do is keep track of the selection so if you leave the page for another on the site and then come back to it it remembers what you have selected.

    Site can be found at
    Yakety Yak is a leading Voice Over Agency based in London. We specialise in Voice Casting, Celebrity Voiceovers as well as English and International voices.


    if anyone can point me in the right direction i would appreciate it

    thanks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    You can store the information into a persistent cookie.
    If you don't want to store it in a cookie, then you could store it on he server instead using Session.

    -Frinny

    Comment

    • colinod
      Contributor
      • Nov 2007
      • 347

      #3
      i understand how to maybe do it with asp and server session variable but that would involve reloading the page each time something is checked in the form, not sure if that is the case with cookies, i would not think so but i am useless with javascript!!!

      Comment

      • jhardman
        Recognized Expert Specialist
        • Jan 2007
        • 3405

        #4
        I'm afraid those are the options that ASP gives you. Of course you could always look up what Ajax offers, that might give you a smoother solution.

        Jared

        Comment

        • Dmc66
          New Member
          • Jan 2010
          • 1

          #5
          AJAX is the way

          AJAX is the way to do what you want. It allows you to call a page on the server from the client, allowing you to save the selection on the server, without submitting the current page.

          It is quite easy to achieve in only a couple of lines of Javascript and an ASP page to save the data on the server.

          Doug.

          Comment

          Working...