Copied to clipboard

Flag this post as spam?

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


  • Thom Hubers 26 posts 47 karma points
    Nov 28, 2012 @ 17:01
    Thom Hubers
    0

    jQuery plugin won't run

    I want to use a jQuery plugin (jQuery Tools - Scrollable) to display a carousel.

    When I do this outside Umbraco, there is no problem. When I do this inside the Standard Website MVC template for Umbraco 4.11 there is an error.

    Code:

    <script type="text/javascript" src="http://cdn.jquerytools.org/1.2.7/full/jquery.tools.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                $("div#slideshow").scrollable({ circular: true, mousewheel: true }).autoscroll({ autoplay: true });
            });
        </script>

    Only when I use this in my Umbraco theme, the following error displays, the file with jQuery and jQuery Tools IS accessible. Why is the plugin not added to $.fn ?

    Error:

    Uncaught TypeError: Object #<Object> has no method 'scrollable'

Please Sign in or register to post replies

Write your reply to:

Draft