I went to this page to build the button. https://twitter.com/about/resources/buttons#tweet
It generated the following code.
Code: Select all
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.example.com" data-text="Check out www.example.com" data-via="example" data-size="large" data-hashtags="example">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
the url of the controller page (where the controller is named 'followus'
ie.
http://example.com/index.lc/followus
Is the problem that the script tags are within the body of the page if I paste into the view page?
Any suggestion would be welcome.
Thanks