multiple key pair values in single cookie

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • buntyindia
    New Member
    • Jun 2007
    • 101

    multiple key pair values in single cookie

    How can i store multiple values in key pair manner on a single cookie ?
    any example code

    Regards,
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Can you give an example of what you might want to store?

    Comment

    • buntyindia
      New Member
      • Jun 2007
      • 101

      #3
      Originally posted by acoder
      Can you give an example of what you might want to store?
      There are 15 text boxes that contain some value used for calculation for example.
      Dental expense = 45.00
      Vision Expense= 55.55 etc

      These kind of 15 values....That i have to store and reterive at the page load if cookie exist..

      One more thing want to ask...Header & Footer sections are common for all the page.... can we place any kind of check on BODY onload event as I want to use this script on only one page?

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Have you tried this script?
        Originally posted by buntyindia
        One more thing want to ask...Header & Footer sections are common for all the page.... can we place any kind of check on BODY onload event as I want to use this script on only one page?
        Yes, you should be able to attach this code to the body onload event.

        Comment

        • buntyindia
          New Member
          • Jun 2007
          • 101

          #5
          Originally posted by acoder
          Have you tried this script?
          Yes, you should be able to attach this code to the body onload event.
          Thanks for response acoder. I have already created the script using the link provided by you. and i taken multiple value conactinated in a string and seprated by semicolon..this is working fine .

          Thanks :)

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            You're welcome. Glad to hear that you got it working.

            Comment

            Working...