• Author
    Posts
  • #12893

    donny-webecks.com
    Participant

    Hi, I want to use this external script
    http://code.jquery.com/jquery-1.7.1.js

    so I go to Panel -> External Script then I put that link there.
    Then I click “Link External” button, but it did not do anything.
    How do I know if the script has been loaded?
    Because my code that is using that script is still not working.

    And if I want to remove this external script, how do I do that?

    Thanks,
    Donny

  • #12909

    Damian Baker
    Participant

    Hi Donny,

    Placing third party scripts using the External Script function saves the script in Templates so you can embed or link them. If you were to go into Templates you should see it in there. You should be able to check to see if it is linked to the Code Block in the Templates Panel.

    Hope this helps.

    Regards,
    Damian

  • #12910

    donny-webecks.com
    Participant

    Yes, I see it under my username.
    What is the best way to use external script function of CSS JS Toolbox Plujs?
    Should I put:
    http://code.jquery.com/jquery-1.7.1.js
    or
    //code.jquery.com/jquery-1.7.1.js
    or should I start it with <script ….

    Thanks,
    Donny

  • #12911

    Damian Baker
    Participant

    Hi Donny,

    I believe you are doing things correctly with using the External Script function and I am glad to know that it shows under your username. The reason the script is not outputting is because a Code Block cannot be empty. Please consider writing a single line of code in the Code Block. For example, a HTML comment such as:

    <!-- Linking jquery-1.7.1.js script -->

    This will force CJT to output the template (i.e. external script) that is linked to your Code Block.

    Regards,
    Damian

You must be logged in to reply to this topic.