Closed (fixed)
Project:
AddToAny Share Buttons
Version:
6.x-3.2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Jun 2010 at 00:11 UTC
Updated:
22 Feb 2011 at 01:48 UTC
The dropdown menu only seems to work on the first node in a list of nodes (Views) in Firefox. It works ok in IE.
Looking at the source, the following javascript is only present in the first node (not sure if that is as intended or not).
<script type="text/javascript">
function da2a_script_onready() { da2a_script_ready = true; if(da2a_html_ready) da2a_init(); }
var a2a_config = a2a_config || {}, da2a_html_ready = da2a_script_ready = false; a2a_config.tracking_callback = ['ready', da2a_script_onready];
(function(){var a = document.createElement('script');a.type = 'text/javascript';a.async = true;a.src = 'http://static.addtoany.com/menu/page.js';var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a, s);})();
</script>
Comments
Comment #1
clockwood commentedComment #2
micropat commentedThat JavaScript is intentionally outputted after the first node only (for asynchronous loading).
However, you should see some AddToAny-related JavaScript right before your closing tag. What does that show?
Comment #3
clockwood commentedComment #4
micropat commentedIt may be an issue of AddToAny buttons retaining the class-name of "a2a_dd", which they shouldn't due to asynchronous loading. This is fixed in the dev version.
Can you tell me if using the snapshot release resolves the issue you're having?
Snapshot release: http://drupal.org/node/838616
Comment #5
rrbachamp commenteddropdown menu is not working in IE8, Firefox, Safari, and Chrome
Tried flushing caches and toggling dropdown feature. No effect.
Comment #6
micropat commented@rrbachamp Do you have the same issue, or are none of your drop-downs functioning? Did you try the snapshot release? http://drupal.org/node/838616
Comment #7
micropat commentedPlease give the next dev release a try (or version 3.2). This release contains some important bug fixes for asynchronous loading, which should also fix this issue.
Comment #8
BoYo commentedI've had this problem, with my own attempts at a Drupal theme. Turns out, I didn't have the php $closure variable printed at the end of the theme. Whoops. Working now.
A quick test: does it work for you if you switch to the Bluemarine theme?
Comment #9
clockwood commentedYep, it seems to work now using the snapshot release.
edit: also works in 6.x-3.2
Comment #10
fred0 commentedI'm seeing this behavior in the 3.2 release in Safari & Firefox. Haven't tested IE.
Flushed caches and confirmed that the "a2a_dd" calls is not present.
Comment #11
fred0 commentedNevermind, i was using old options names in the "Additional options" settings.
a2a_onclick=1;a2a_track_links='awesm';a2a_track_links_key='my_key';a2a_init('page');
should now be
a2a_config.onclick = 1;a2a_config.track_links = 'awesm';a2a_config.track_links_key = 'my_key';
Comment #12
Lanae commentedI upgraded to 3.2 and flushed caches, the menu is still not working at all in Firefox. Works fine in IE 8. I have the button in the Links section and nothing entered in Additional Options.
Comment #13
micropat commented@fred0, AddToAny is backwards-compatible with the old API syntax. The only problem was
a2a_init('page');. Not sure why you had that there. :)Comment #14
micropat commented@foraker Are you getting any JavaScript errors? Troubleshooting would be easier if you could link us to your site (or source).
Comment #15
micropat commentedMarking this issue as fixed and giving it a detailed title since clockwood reports that this specific issue is fixed in 3.2.
Please start a new issue if the drop-down is not appearing for you.
Comment #17
lsdoc77 commentedI continue to get the same error in ie8 and the css is really meshed up.
I use version 6.x-3.3.Is there any workaround for this?
Comment #18
lsdoc77 commentedFor anyone wanting the code for making a 'share this' block (namely for facebook,twitter,delicious and LinkedIn), the HTML:
and the javascript :
apply the css and it's ready..