By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,861 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Creating social media buttons on the fly using JavaScript

P: 2
I have a video library with a growing number of videos and alternate sorting views. Each video can be played on the same screen as the library page itself. Each video has a set of 4 social media icons for users to share specific videos. The callback URL of each share is different and returns to a specific player page for that video.

I presently have all the social media icons loading as the page loads and it takes an eternity. I want to have the social media icons CREATED on the fly when a user reveals the social media buttons.

I have been able to get the CODE for the buttons to propagate from JS code to their assigned div using innerHTML, but the browser doesn't seem to PARSE those tags to view them properly (other than Facebook).

My original (eternity) page can be viewed at

My failed attempt to make them show up on the fly can be seen at

Twitter shows up as only text, Facebook seems to be working, Google+ is a total fail, had to remove my attempts for LinkedIn due to the attempts halting the script.

Could use some pointers.
May 10 '12 #1
Share this Question
Share on Google+
1 Reply

P: 2
I have abandoned this effort due to not finding any solutions. If anyone has any ideas, I would be interested to know about them.

The test link will be deactivated.
May 24 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.