Announcement

Collapse
No announcement yet.

Adding acatalog to javascript

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

    Adding acatalog to javascript

    Sorry to trouble

    There have been several posts about Sellerdeck adding 'acatalog' to javascript references.

    I am trying to add this to a client site:

    Code:
    <script type="text/javascript" src="//www1.moon-ray.com/v2.4/include/formEditor/genbootstrap.php?method=script&uid=p2c7054f31&version=1"></script>
    Unmodified, Sellerdeck adds acatalog thus:
    Code:
     src="acatalog//www1.moon-etc etc
    I have tried several variations of document.write with no success. For example, writing this code:
    Code:
    <script>
    document.write("
    %3Cscript type="text/javascript" src="//"+"w"+"w"+"w1"+"."+"moon-ray"+"."+"com/v2.4/include/formEditor/genbootstrap.php?method=script&uid=p2c7054f31&version=1"%3E%3C/script%3E
    ");
    </script>
    Merely results in the code appearing unaltered in the page source of the live site!

    Please can anyone help?

    Thanks
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    #2
    Solved

    Cracked it!

    Here is the working code
    Code:
    <script>
    document.write(unescape("%3Cscript src='//www1.moon-ray" + "." + "com/v2.4/include/formEditor/genbootstrap" + "." + "php?method=script&uid=p2c7054f31&version=1' type='text/javascript'%3E%3C/script%3E"));
    </script>
    Based on Normans fix for Google analytics here: http://community.sellerdeck.com/show...25&postcount=5

    As a simple rule of thumb you replace dots in the code urls with " + "." + "

    Thanks
    Jonathan Chappell
    Website Designer
    SellerDeck Website Designer
    Actinic to SellerDeck upgrades
    Graphicz Limited - www.graphicz.co.uk

    Comment

    Working...
    X