Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
how to include external js files into umbraco 4.7.1.1?
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
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
i want to add js file to a usercontrol and call a function in the jquery from ascx page in script tag
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
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to include external js files into umbraco 4.7.1.1?
how to include external js files into umbraco 4.7.1.1?
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
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
i want to add js file to a usercontrol and call a function in the jquery from ascx page in script tag
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
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
is working on a reply...