Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjoern Maassen 11 posts 122 karma points
    Jan 17, 2017 @ 11:19
    Bjoern Maassen
    0

    javascript not working after ssl configuration

    since we updated our website to use https our counter is not working anymore.

    is there any configuration for the javascripts ? how is this counter even working? do i have to update another config-file, not only web.config when i want to use https ?

    i dont have much experience and need help to fix this issue

    thanks for your help

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jan 17, 2017 @ 11:22
    Nik
    100

    Hi Bjoern,

    The first step is to see if there are any client side errors. Most browsers use the F12 (on windows) key to launch their development console, alternatively you should be able to right click on the page and choose "Inspect".

    Once you are in the devtools, have a look and see if there are any errors. It is possible your site isn't loading external javascript files because they are requested via http instead of https. In which case you will need to update your templates to make the call via https instead.

    Nik

  • Bjoern Maassen 11 posts 122 karma points
    Jan 17, 2017 @ 11:33
    Bjoern Maassen
    0

    Hi Nik

    thank your for your fast reply.

    i received several errors - how do i update my templates to use https ?

  • Bjoern Maassen 11 posts 122 karma points
    Jan 17, 2017 @ 13:53
    Bjoern Maassen
    1

    i found the solution:

    there was a link in the script.js-File which caused this issue: "noext!https://www.youtube.com/iframe_api"

    this link was configured to use http. now our website works just fine.

    thanks for your help

  • Nik 1625 posts 7295 karma points MVP 7x c-trib
    Jan 17, 2017 @ 14:06
    Nik
    0

    No problem Bjoern, happy to help :-)

    One trick that might be useful, when I'm putting script links in I often just put in //www.someurl.com/jsfile.js

    The use of // at the start means that is uses what ever the site is using. So on HTTP it uses http on HTTPS it uses https. Just something to keep in mind :-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies