Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Adding jQuery To DotNetNuke Skin or Custom Module

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 633
    Comment on it

    While parsing the skin from HTML file that has been developed by HTML developer. There are many unknown issues occurs. For example-

    1. Sub-Menu does not show under Main menu.
    2. Slider does not rotate in Homepage.
    3. Layout is malformed.
    4. Works fine when logged in but not when logged out.

    Note: When you login as an administrator jQuery will always be available since the control panel bar request it.

    Don't: Do not add script tag into page settings or in skin (.ascx) file.

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    

    Do's: In skin/module (.ascx) file, add the control for jQuery that is available on following path ""~/Admin/Skins/jQuery.ascx"". This will ensure that jQuery is available on every single page.

    <%@ Register TagPrefix="dnn" TagName="jQueryScript" src="~/Admin/Skins/jQuery.ascx" %>
    <dnn:jQueryScript runat="server"></dnn:jQueryScript >
    

    There are optionally add public properties to register jQuery UI, DNN jQuery Plugins and Hover Intent can be set to True/False (False by default).

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: