Topic-icon Issue with Javascript on using share/like buttons

Active Subscriptions:

None
Hi there, yes, I'm back I'm afraid and starting a new post as the others seem to have gotten lost in the rush :)

I'm sorry to nag, but I really do need to get this resolved very urgently, and am happy to pay for it if the cost is reasonable - I like JFBC and you now have Twitter, and hopefully LinkedIn soon....

I need to have the share/like/mail/comment buttons available for the different social networks in the activity stream, without issues with javascript once a button is used. I also need these to show on the Cobalt 8 component - they show in Joomla core articles but not in Cobalt, and I don't want to use another social sharing on the same site in case it causes conflicts.

This is now very urgent. The site is getting a fair amount of attention, and I really, really, really need to find a solution before this chases people away.

Many thanks!
Jude
The topic has been locked.
Support Specialist
10 years 5 months ago #39478 by alzander
Jude,
Sorry to not get back to your previous post. Unfortunately, I don't have a great solution for you right now when using the social buttons inside an AJAX-y window. When the content is reloaded over AJAX, there's not a way to re-scan the code for our {JFBCxyz} tags and not always a way to re-parse the Javascript tags for each social network.

We are working on a new social sharing system which would make adding the social widgets much simpler and more robust. With it, you can easily use direct PHP calls to load each of the social sharing widgets. Additionally, we're planning to add options for using the iFrame version of the widgets, where possible. Facebook allows this for almost all of their widgets. Some other social networks do, and others don't. The iFrames shouldn't have a problem when loaded using AJAX.

Unfortunately, the above changes are in development and won't be available until the v5.3 release, in early 2014 (likely late January).

Until then, my only suggestion is to not use the social buttons in code that is loaded via AJAX as it's problematic, as you've seen.

I hope that helps explain, but if there's an interim solution you're looking for that you think could work for you, just let me know.

Thanks,
Alex
The topic has been locked.