in reply to Free publicity

Thanks for posting the code! It seems that the code also needs some additional Javascript:

<div ... onclick="return popupLinkedInShare(this.href,'console' +,400,570)" class="linkedin_share_button">

Maybe popupLinkedInShare() comes from some external files. If these files are hosted by LinkedIn, that would mean we would funnel every page hit to LinkedIn, which I consider in appropriate without user opt-in. Can you find out what LinkedIn documents how to use their button? If it isn't possible without pulling in files from LinkedIn, this would need to go into the Free Nodelet as well. As a second alternative, we could make a "Social Nodelet" that (registered) users can add to their pages. This restricts the "network effect" somewhat, but I prefer not to force-feed all those data collectors with data from the visitors who prefer to remain anonymous to us.

Nodelets are basically HTML snippets and can also pull in Javascript, like jozef proposed in Re^4: Facebook 'like' button. (atypical).

Replies are listed 'Best First'.
Re^2: Free publicity
by Steve_BZ (Chaplain) on Jul 16, 2011 at 22:30 UTC

    Hi Corion,

    The code for popupLinkedInShare() is on the same website as the button and the article and is preloaded in a .js library. The code is:

    var winLinkedInShare = null; function popupLinkedInShare( strURL, strType, strHeight, strWidth ) { var strOptions = ''; if ( winLinkedInShare != null && !winLinkedInShare.closed ) winLinkedInShare.close(); if ( strType == 'console' ) strOptions = 'resizable,height=' + strHeight + ',width=' + str +Width; else if ( strType == 'fixed' ) strOptions = 'status,height=' + strHeight + ',width=' + strWid +th; else if ( strType == 'elastic' ) strOptions = 'toolbar,menubar,scrollbars,resizable,location,he +ight=' + strHeight + ',width=' + strWidth; winLinkedInShare = window.open( strURL, 'winLinkedInShare', strOpt +ions ); winLinkedInShare.focus(); return false; }

    There are a number of .js libraries supporting the different social networking sites.

    Regards,

    Steve