Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts

    JavaScript cookie help

    Hi i used cookies to store data using java script with 2 calculators, but there is a 3rd calculator that the cookies arent storing, can someone help me figure out where to implement the script?

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by ceerup View Post
    Hi i used cookies to store data using java script with 2 calculators, but there is a 3rd calculator that the cookies arent storing, can someone help me figure out where to implement the script?
    How on earth can you expect anyone to diagnose your problem if you do not post any code?

    It is your responsibility to die() if necessary….. - PHP Manual

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #3
    New Coder
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Philip M View Post
    How on earth can you expect anyone to diagnose your problem if you do not post any code?

    It is your responsibility to die() if necessary….. - PHP Manual

    its large, theres 2 codes, they save the cookies but both calculators have the same cookie id's and it saves the same thing on both calculators,
    and when i switch the ID's the calculators just stop working

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    Quote Originally Posted by ceerup View Post
    its large, theres 2 codes, they save the cookies but both calculators have the same cookie id's and it saves the same thing on both calculators,
    and when i switch the ID's the calculators just stop working
    Show the relevant code. Your question is as unanswerable as if you complained that your motor car does not work, without giving any further information.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • #5
    New Coder
    Join Date
    Apr 2012
    Posts
    38
    Thanks
    1
    Thanked 0 Times in 0 Posts
    re edit
    Last edited by ceerup; 05-01-2012 at 06:20 PM.

  • #6
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,918
    Thanks
    203
    Thanked 2,531 Times in 2,509 Posts
    ceerup - When posting here please help us to help you by following the posting guidelines and wrapping your code in CODE tags. It should be very obvious why this is necessary. This means use the octothorpe or # button on the toolbar. You can (and should) edit your previous post.


    You talked of a third calaculator, but I see no code relating to that.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •