Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Oct 22, 2012 @ 09:01
    Anthony Candaele
    0

    Nivo slider not working after implementing Client Dependency Framework

    Hi,

    I implement the Client Depency Framework on an Umbraco website:

    <CD:ClientDependencyLoader runat="server" id="Loader" >

    <Paths>

    <CD:ClientDependencyPath Name="Styles" Path="/css" />

    <CD:ClientDependencyPath Name="Scripts" Path='/scripts' />                

    </Paths>

    </CD:ClientDependencyLoader>

    <CD:CssInclude ID="CssInclude1" runat="server" FilePath="/css/style.css"  />

    <CD:CssInclude ID="CssInclude3" runat="server" FilePath="/css/nivo-slider.css"  />

    <CD:CssInclude ID="CssInclude2" runat="server" FilePath="/css/layout.css"  />

    <CD:JsInclude ID="JsInclude2" runat="server" FilePath="/scripts/js/jquery-1.7.2.min.js" />

    On my local machine everything works fine, however, on my the webserver, my Nivo slider doesn't show up

    Does anyone has an idea what the problem could be?

    thanks for your help,

    Anthony

     

  • Anthony Candaele 1197 posts 2049 karma points
    Oct 23, 2012 @ 14:43
    Anthony Candaele
    0

    Setting the Priority-attribute on my JsInclude element solved the problem:

    <CD:JsInclude ID="JsInclude2" runat="server" FilePath="/scripts/js/jquery-1.7.2.min.js" Priority="1" />

    <CD:JsInclude ID="JsInclude1" runat="server" FilePath="/scripts/js/jquery.nivo.slider.js" />

    <script type="text/javascript">

        (function ($) {

            $(window).load(function () {

                $('#slider').nivoSlider(

    {

    controlNav:false

    });

            });

        })(jQuery);

    </script>

    greetings,

    Anthony

Please Sign in or register to post replies

Write your reply to:

Draft