Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Is it possible to get the values of checked checkboxes from anywhere on a site?

  1. #11
    Join Date
    Oct 2012
    Posts
    180
    Thanks
    22
    Thanked 1 Time in 1 Post

    Default

    No sure why... my wife's laptop and my laptop all add to favorites on all 3 different browsers we have. OK... I think I am going to redo this whole thing using ajax / php / mysql. It's concerning to me that it's not working in your browsers. Thanks for your help nonetheless!
    Last edited by qwikad.com; 09-11-2015 at 12:13 PM.

  2. #12
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    Using php or another server side language is better anyway, as localstorage loses all data after clearing the browser's history (1) and only stores data on the browser you'r actually using (2).

  3. #13
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I should add this:
    local means what it says: on your computer and in the browser you're using only. That's why I never use it for Internet-purposes.

  4. #14
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    MMMMmmm. Just got your PM about this. I think it's possible. Certainly using a site wide cookie/local storage data pin, in conjunction with either site wide PHP and/or javascript code. Up to you how you want to read it. Also, what Arie says is spot on! Unless you use a login and server side profile or similar, the persistence of the data could be fairly easily lost from use to use. If, however, your desire is only to preserve this information during the current browser session, that's pretty easy without any server side code, yet would be enhanced if server side code were available for it. Much depends upon how critical this is. If it's OK if someone decides to, in the middle of viewing the site, to delete cookies and/or local storage, resulting in a total loss of this data for them, then javascript alone can suffice. I can guarantee that won't happen very often, but it will happen sometimes. If even sometimes is unacceptable, you need an all server side solution.

    Sorry to be so long getting back to you, been busy/distracted.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Similar Threads

  1. Replies: 2
    Last Post: 07-18-2012, 02:48 PM
  2. Replies: 0
    Last Post: 08-25-2011, 03:08 AM
  3. Handling Multiple Checkbox Values
    By mtippery1 in forum PHP
    Replies: 1
    Last Post: 04-10-2010, 05:45 AM
  4. Replies: 3
    Last Post: 10-27-2007, 08:04 PM
  5. Replies: 0
    Last Post: 04-27-2006, 07:09 AM

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
  •