Open GoogleCodeExporter opened 9 years ago
Your setHashParameter() function uses window.localStorage incorrectly. Check
out this tutorial from Dive Into HTML5 for more details:
http://diveintohtml5.org/storage.html#methods
Try something like this instead:
var BUBBLE_STORAGE_KEY = 'bubble';
bubble.hasHashParameter = function() {
return window.localStorage[BUBBLE_STORAGE_KEY];
};
bubble.setHashParameter = function() {
window.localStorage[BUBBLE_STORAGE_KEY] = '1';
};
Original comment by ntho...@google.com
on 28 Feb 2011 at 3:52
Thanks for taking the time to reply. I'm still having issues as I don't fully
understand what the problem is. I have tried the code provided above and it
didn't work for me.
Is there a way of simply not using cookies or html5 localStorage and just
display the bubble by clicking a hyperlink?
As you can probably tell, Im not too good with JavaScript but this bubble is
such a great idea I'd love to integrate it into out mobile site...
Many thanks,
Rich
Original comment by york.ric...@gmail.com
on 1 Mar 2011 at 10:23
Sorry for the delay in getting back to you.
I just tried downloading your code and running it locally, and it worked fine
for me. One thing to note is that with your implementation of
setHashParameter(), the bubble will only ever be shown once per device (unless
the user clears their cache). For testing, you might want to change this so
that the bubble is _always_ shown:
bubble.setHashParameter = function() { }
bubble.hasHashParameter = function() {
return false;
}
Original comment by ntho...@google.com
on 3 Mar 2011 at 9:47
Thanks, I have tried the above code and the bubble still does not display. I
have no idea what is stopping it from displaying. Im getting close to giving up
now :( Thanks for you help and patience
Original comment by york.ric...@gmail.com
on 8 Mar 2011 at 8:40
Do you have the current version of your code running somewhere that I can
experiment with it? It looks like the links in your initial bug report are
still pointing to an older version of the code that uses window.localStorage.
Original comment by ntho...@google.com
on 11 Mar 2011 at 11:26
Hi, yes sorry it is now back to your latest suggestion. Many thanks for your
continued support!
Original comment by york.ric...@gmail.com
on 12 Mar 2011 at 9:01
Sorry, I've been swamped with other projects recently. I'll take a look at this
as soon as I can. :)
Original comment by ntho...@google.com
on 17 Mar 2011 at 2:54
It looks like the add to homescreen link now just shows an alert() with text
instructions. Is there somewhere else that the bookmark bubble is being
triggered?
Original comment by ntho...@google.com
on 3 Apr 2011 at 2:17
I've been having the identical issue, cropped up recently although am unaware
how long I've overlooked it.
I've made no changes to the js, until going through this post to attempt to fix
the issue with the comments provided.
A live instance of this occurrance:
http://www.allscenes.com/allscenes
http://www.allscenes.com/allscenes/static/js/bookmark_bubble.js
http://www.allscenes.com/allscenes/static/js/bookmark.js
What I find odd is that I've made no change to cause the issue,
Does the library rely on any external resources??
I do have other google services installed (Analytics & Translate) but removing
them has no change so I don't thing they're conflicting.
Help appreciated.
Original comment by ghy...@allscenes.com
on 12 May 2011 at 10:16
Going through our sites today my issue has resolved itself oddly enough.
Unsure as to the original cause or indication as to how it resolved on it's own
(Wasn't just from me restarting as it was occurring on my other devices as
well).
Original comment by ghy...@allscenes.com
on 12 May 2011 at 9:11
Glad to hear it's working again. For the record, the library doesn't rely on
any external resources.
Original comment by ntho...@google.com
on 12 May 2011 at 9:14
Original issue reported on code.google.com by
york.ric...@gmail.com
on 27 Feb 2011 at 5:40