Set up LinkedIn

I have a built-in LinkedIn login feature as well as a Follow button on my ASP.NET MVC website.

But I have to call the function after clicking on the Follow button. I tried the following code. but it does not work

 <script type="text/javascript">
                    function myOnclickFunction(r) {
                        alert("click");
                        console.log(r);
                        // do something here
                    }

                    function myOnsucesssFunction(r) {
                        alert("success");
                        console.log(r);
                        // do something else here
                    }
                </script>
              <script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
                    <script type="IN/FollowCompany"
                            data-id="1337"
                            data-jobtitle="Chief Cat Herder"
                            data-onclick="myOnclickFunction"
                            data-onsuccess="myOnsuccessFunction">
                    </script>

Someone please help me

+4
source share

Source: https://habr.com/ru/post/1589191/


All Articles