Has anyone got a LinkedIn follow button to work? - linkedin

Has anyone got a LinkedIn follow button to work? Like others, i just get a blank page when clicking it. And i canĀ“t find any solutions in the existing threads here at Stack Overflow.
I have tried the following code snippet. it shows the button and a counter for the number of followers, but does not work when you click it.
<script src="https://platform.linkedin.com/in.js" type="text/javascript">
lang: en_US</script>
<script type="IN/FollowCompany" data-id="1337" data-counter="top"></script>
Is there another way to implement this button?

Related

Web Essentials not showing in Browser

After the weekend, web essentials doesn't show in the browser anymore. However building Less files, CSS autosync, etc is still working, just this great bar stays hidden.
I searched google it, and it is not just hidden, it's not rendered in the DOM, only
<script type="application/json" id="__browserLink_initializationData">
{"appName":"Chrome","requestId":"5c9092ee0b964487b663037c2de3f322"}
</script>
<script type="text/javascript" src="http://localhost:1216/d155929549b34e279886e90ecc111382/browserLink" async="async"></script>
How can I make the bar visible again / which additional information can I porovide to solve this?
It maybe you have hidden it by mistake try pressing Ctrl
From the docs
If you don't care to see the menu all the time, check this checkbox to make it be invisible by default. To toggle visibility of the menu, just click the Ctrl key in the browser.

Issues with LinkedIn follow Button

I want to use linkedIn follow button for evey user like User provide his profile url and we create a follow button with the help of that url . I have get the follow button code from LinkedIn :
<script src="//platform.linkedin.com/in.js" type="text/javascript">
lang: en_US
</script>
<script type="IN/FollowCompany" data-id="test" data-counter="right"></script>
we get the company / username from url and replace data-id with that . But this code doesn't show any follow button at front end. Is there any html code I have to use for that (But linkedIn doesn't provide that code). So Please How I can show follow button at front end.
You're not using an actual id for company in the script: data-id="test".
You need to use a real id.
Select yours from the dropdown in the tool you used to create the button:
you don't need any HTML code for that , just placed the js code where you want to show follow button . you can get better idea from here

YouTube button for the website

I went to https://developers.google.com/youtube/youtube_subscribe_button#Configuration_Options to create YouTube Subscribe button, but for some reason instead of buttons I could choose from I see gray boxes and there is no code shown. Please help
Thank you!
The basic code, test it on your web page :
<script src="https://apis.google.com/js/platform.js"></script>
<div class="g-ytsubscribe" data-channel="GoogleDevelopers" data-layout="default" data-count="default"></div>

onbeforeunload dilemma: iframe breaking vs. annoying message on refresh/back buttons click

I'm implementing a search service called SearchInsideOut.
This search service simply replaces web page results by full web pages (Yes, I used iframe).
The problem I have to deal with is iframe-breaking pages.
The promising solution I found is using onbeforeunload to let users decide whether to stay or leave my site.
But this also creates another annoying behavior.
When users click other links in my site, onbeforeunload will also be triggered.
Fortunately, I could solve this case by placing window.onbeforeunload=null in the onclick event of those links of my site.
Unfortunately, I have no idea how to detect external events like clicking "refresh/back" buttons.
What should I do to solve this difficulty?
All suggestions and comments are highly appreciated.
Take as example this site. Try to refresh the page after u typed some text answering to a post. You will see that the page it will ask you to continue ur work or exit. Make another test without answering to a post, just refresh, you will see that the confirm will not showed, because the site is making a test if the "answer" is empty or not.
Example:
<html>
<head>
<script>
function closeIt()
{
var mytext = document.getElementById("mytext").value;
if(mytext != "")
return "Any string value here forces a dialog box to \n" +
"appear before closing the window.";
}
window.onbeforeunload = closeIt;
</script>
</head>
<body>
<textarea id="mytext"></textarea>
</body>
</html>
So it's up to u to decide when the box will show or not. Visit also Microsoft Msdn to understand when and how onbeforeunload works

Fancybox not displaying correctly

I have a page, with a form, and I'd like to display a fancybox when a link is clicked on this page.
I have another working page with a fancybox on, which is fine, but on this page, the fancybox iframe seems to display using the incorrect height/width, and below the form on the page.
Although this is an ASP.Net site, I am using html only on this page, pretty much, as I need a fair amount of quick client side functions.
Here is my code:
Add Mileage Claim
$(document).ready(function() {
$('a.iframe').fancybox({
'frameWidth': 530,
'overlayOpacity': 0.8,
'overlayColor': "#000",
'hideOnOverlayClick': false,
'zoomSpeedIn': 1250
});
});
There is also a jCarousel on this page, and the link itself is within a form.
Does anyone have any ideas, as i am stuck? I've googled a lot and found nothing.
I've got this working. It was due to the fact that the tag was set with rel="text/css" when it needed "stylesheet".
You learn something new every day.

Resources