How to dynamically load linkedin share button?

天涯浪子 提交于 2020-04-12 20:18:24

问题


I am loading dynamically content on my web site and I need to create social media buttons after the ajax function, when i get necessary information. I found great solutions for facebook and twitter, but I can't find the working solution for linkedin. Hope my question is clear... Thanks in advance for smart answers!

EDIT: I found a solution.

var din ='<script id="holderLink" type="IN/Share" data-url="http://kitchenprague.com/news.php?id='+val.id+'" data-counter="right"></script>';
$(".linkedinDetail").html(din);
IN.parse();

回答1:


var din ='<script id="holderLink" type="IN/Share" data-url="http://kitchenprague.com/news.php?id='+val.id+'" data-counter="right"></script>';

$(".linkedinDetail").html(din);

IN.parse();


来源:https://stackoverflow.com/questions/10178996/how-to-dynamically-load-linkedin-share-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!