Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple social containers #103

Open
b1nary opened this issue Feb 3, 2015 · 0 comments
Open

Multiple social containers #103

b1nary opened this issue Feb 3, 2015 · 0 comments

Comments

@b1nary
Copy link

b1nary commented Feb 3, 2015

As i can define the social container i assumed that it would be possible to have multiple different buttons of the same kind on the same page.

My scenario is, i have a single page application. There is a facebook like and a twitter share on the start page (for the startpage). You can dynamically generate images which results in a popup which again should have a twitter share, facebook like and even more but this time specified for the specific image with specific text fitting to the image.

I tried several variations of these:

$(".form-social .item a, .form-social .item div").attr('data-href', uri)
$(".form-social .item a, .form-social .item div").attr('data-url',  uri)

Socialite.load($(".form-social"));
Socialite.activate($(".form-social .facebook a"), 'facebook-like');
Socialite.activate($(".form-social .twitter a"),  'twitter-share');

But nothing is able to "re create" the specific social buttons.

Even worse, when i call:

Socialite.load($(".social-buttons"));

on page load, all the social buttons from ".form-social" get loaded as well, while none of them is contained in the other.

Currently i am pretty much stuck, wondering if this is even supposed to be possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant