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
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
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,
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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
is working on a reply...