Home › Forums › Calendar Products › Filter Bar › Many Features w/ Hard Dependency on HTML localStorage
- This topic has 8 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
December 2, 2015 at 9:12 am #1033913
Josh
ParticipantHello,
The following features appear to have a hard dependency on localStorage:
- filters
- photo view (issue with google maps)
- month view
- map meta box on event page
- “Events From” date filter
I have added code to detect this and disable (display:none) these features in the event that localStorage is not available.
However, this solution is very much not ideal, as it means customers with iOS private browsing mode enabled do not have access to a very large number of key features. (This issue has also been brought up in this support issue.)
Would you be willing to prioritize removing this hard dependency?
December 2, 2015 at 12:44 pm #1034087George
ParticipantHey @Josh,
I’m sorry that for now you’ve had to outright disable these features; improving the handling of storing the state of Filter Bar is indeed a priority, but it’s a challenging thing to fix. There are not great alternatives ๐
Posts like these definitely do help keep this on our radar, though, so thank you for reaching out at all.
I’m really sorry about this state of things; do you have any further thoughts or any more specific questions I could address here?
Sincerely,
GeorgeDecember 4, 2015 at 10:54 am #1035658Josh
ParticipantSince this issue extends beyond Filter Bar and into core functionality of The Events Calendar, if there’s any way that I can fix at least some of these cases using an existing filter, that would be very much appreciated.
Can you offer any suggestions? (Otherwise, if there’s nothing you can do, go ahead and close the ticket.)
December 4, 2015 at 12:04 pm #1035708George
ParticipantI’m sorry about this @josh, but other than localStorage there is not a solution I could recommend at this time ๐
I know it’s a huge disappointment and I’m very, very sorry about that! I will indeed close up this ticket, but before doing so, let me know if you have any other questions I can help with or any other thoughts on this…I’m sorry to disappoint Josh!
Sincerely,
GeorgeDecember 7, 2015 at 5:51 am #1036635Josh
ParticipantSince you’re asking for other thoughts – I haven’t looked at the code, but I can’t imagine that you’re storing that much. Why not just fall back to memory if local storage isn’t available?
December 7, 2015 at 9:52 am #1036993George
ParticipantI unfortunately don’t have a technical answer for that question โย what do you mean by “fall back to memory” in the context of our browser-side JavaScript powering these features?
December 7, 2015 at 10:55 am #1037051Josh
ParticipantSomething like this:
window.foo = 'bar';As opposed to:
window.localStorage.foo = 'bar';And maybe check to see if localStorage is available before deciding whether or not to use it: http://stackoverflow.com/a/16427747
December 8, 2015 at 10:40 am #1037753George
ParticipantI appreciate the tips and recommendations here; there’s much to pass along to our devs and we are seriously interested in improving Filter Bar’s ability to save and store a set of filters…
Thank you for your patience here in this thread specifically, and just in general with us while we work on improving Filter Bar period.
Stay tuned to plugin updates!
Sincerely,
GeorgeFebruary 18, 2016 at 8:32 am #1076020Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Many Features w/ Hard Dependency on HTML localStorage’ is closed to new replies.
