Announcement

Collapse
No announcement yet.

Sellerdeck inserts '/acatalog' into external javascript pathname on home page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Sellerdeck inserts '/acatalog' into external javascript pathname on home page

    Hi - I have a problem with implementing external Trust Seal javascript.

    The script is:

    Code:
    <script type="text/javascript"> //<![CDATA[
    var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.trust-provider.com/" : "http://www.trustlogo.com/");
    document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
    //]]></script>
    <script language="JavaScript" type="text/javascript">
    TrustLogo("https://ssl.comodo.com/images/seals/sectigo_trust_seal_lg_2x.png", "SECDV", "none");
    </script>
    This works fine on all pages except the home page. The debug console for the home page displays:

    Code:
    GET https://secure.trust-provider.com/acatalog/trustlogo/javascript/trustlogo.js - Error 404
    I have seen this before whereby Sellerdeck inserts '/acatalog' into the pathname... but I can't remember how to rectify it.
    Regards
    David

    www.theoriginalsin.co.uk
    Website Design & Development

    #2
    Try escaping the dot in the .js part so SD doesn't detect it. E.g:
    Code:
    document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo%2Ejs' type='text/javascript'%3E%3C/script%3E"));
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Sorted. Thanks for that.
      Regards
      David

      www.theoriginalsin.co.uk
      Website Design & Development

      Comment

      Working...
      X