Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: javascript causing ssl error - linkedin

  1. #1
    hha is offline Junior Member
    Join Date
    Aug 2011
    Posts
    11

    Default javascript causing ssl error - linkedin

    Hi,

    When adding the linkedin share button from http://developer.linkedin.com/plugins/share-button on template.aspx, the button looks and works fine, except that when viewing the page via Chrome it shows SSL error.

    <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
    <script type="IN/Share" data-url="the linkedin profile page"></script>

    Suggestions?

  2. #2
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    I would try changing the link in your JS to be https instead of http. It looks like they have an SSL cert installed there so the link still works, and it should prevent the 'mixed content' warnings from browsers.

  3. #3
    hha is offline Junior Member
    Join Date
    Aug 2011
    Posts
    11

    Smile

    Thanks! it worked very well.

    P.S. At first when testing I guess because of the browser session, it was not possible to see the changes, but then when testing again after clearing the cookie and starting a new browser etc. the ssl error disappeared.

  4. #4
    don.irwin is offline Member
    Join Date
    Apr 2006
    Location
    Phoenix AZ
    Posts
    81

    Default

    I would change all your external references to scheme relative - so that it doesn't matter if you are using SSL or not - you just need to make sure the external ref's all support https - so for example, instead of:

    Code:
    <script src="http://platform.linkedin.com/in.js" type="text/javascript"></script>
    USE THIS:
    Code:
    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
    i.e. drop the "http:"