I have been asked to make some improvements to an already existing website which is using Umbraco version 3.0.3.
I have never used Umbraco before and so when it came to integrating a Jquery plugin in the way I normally would, i.e. adding the .js files into the scripts folder linking to them within the head of the main template document and inserting the Javascript into the head, nothing renders in the div when the page is loaded.
I am assuming that I am doing something fundamentally wrong due to my lack of experience with Umbraco?
You are taking the correct approach for including jQuery (and/or plugin) into your website. Not sure what the problem is, we'll need some more details from you.
How many templates do you have?
Are they using master/parent templates? If so, can you locate the top "master" template?
When you update the template's <head>, does it save correctly? As in it shows the 'save' message and it can be reloaded? (just checking)
Don't worry, I don't think you are doing anything wrong as such, hopefully we'll help you sort it out.
I have located the Master template and added it in the
head section, it does save and relaod properly.
The main thing that I wanted to know was whether I was going about it the right way, so thanks for your help it must be some sort of error on my behalf, although I have not been stuck on integrating Jquery for this long before!
How do you Integrate Jquery into Umbraco?
I have been asked to make some improvements to an already existing website which is using Umbraco version 3.0.3.
I have never used Umbraco before and so when it came to integrating a Jquery plugin in the way I normally would, i.e. adding the .js files into the scripts folder linking to them within the head of the main template document and inserting the Javascript into the head, nothing renders in the div when the page is loaded.
I am assuming that I am doing something fundamentally wrong due to my lack of experience with Umbraco?
Thanks in advance,
KV
Hi KV,
You are taking the correct approach for including jQuery (and/or plugin) into your website. Not sure what the problem is, we'll need some more details from you.
Don't worry, I don't think you are doing anything wrong as such, hopefully we'll help you sort it out.
Cheers, Lee
I agree with Lee, sounds like you're heading the right way.
I would run your site and then view your source code, then you can check if the jquery reference is in there as well as the correct functions etc.
Rich
Hi thanks for the comments,
I have located the Master template and added it in the head section, it does save and relaod properly.
The main thing that I wanted to know was whether I was going about it the right way, so thanks for your help it must be some sort of error on my behalf, although I have not been stuck on integrating Jquery for this long before!
KV
feel free to post a link and we can help you in teh debugging... a lot of us integrate jquery with umbraco output all the time.
is working on a reply...