Copied to clipboard

Flag this post as spam?

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


  • siva kumar 120 posts 209 karma points
    Apr 25, 2013 @ 13:55
    siva kumar
    0

    how to include external js files into umbraco 4.7.1.1?

    how to include external js files into umbraco 4.7.1.1?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 25, 2013 @ 17:51
    Jan Skovgaard
    0

    Hi Siva

    Can you ellaborate a bit more on what you're trying to achieve and why you want to do this? Not sure I understand your issue :)

    /Jan

  • Rich Green 2246 posts 4008 karma points
    Apr 25, 2013 @ 18:06
    Rich Green
    0

    You just need to link them in your templates, like anything else.

    using a "/" before will mean they will get called for all pages.

      <script type="text/javascript" src="/js/anyFile.js"></script>

    Rich

  • siva kumar 120 posts 209 karma points
    Apr 26, 2013 @ 06:37
    siva kumar
    0

    i want to add js file to  a usercontrol and call a function in the jquery from ascx page in script tag

  • Rich Green 2246 posts 4008 karma points
    Apr 26, 2013 @ 09:59
    Rich Green
    0

    Hey Siva,

    I'm not sure I understand your question, but I think my answer still stands, just reference your JS file in the way I've suggested and call the jQuery function however you would like.

    RIch

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Apr 26, 2013 @ 10:05
    Jan Skovgaard
    0

    Hi Siva

    Yup, Rich is spot on. It's not different from how you would do it in a static HTML file. Just make sure you got the reference to the script right.

    If you're still troubled by this perhaps it would be an idea to post some samples of your usercontrol so we can see what it is you're doing.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft