Copied to clipboard

Flag this post as spam?

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


  • Kv 2 posts 22 karma points
    Jul 06, 2010 @ 13:04
    Kv
    0

    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

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Jul 06, 2010 @ 13:27
    Lee Kelleher
    0

    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.

    • 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.

    Cheers, Lee

  • Rich Green 2246 posts 4008 karma points
    Jul 06, 2010 @ 14:53
    Rich Green
    0

    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

  • Kv 2 posts 22 karma points
    Jul 06, 2010 @ 15:22
    Kv
    0

     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

  • bob baty-barr 1180 posts 1294 karma points MVP
    Jul 06, 2010 @ 16:32
    bob baty-barr
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft