More in this section

Forums / Bugs & Issues / Navigation breaks additional JS

Navigation breaks additional JS

3 posts, 0 answered
  1. Owain
    Owain avatar
    3 posts
    Registered:
    25 Jan 2011
    27 Feb 2011
    Link to this post
    I am currently converting a html version of a wordpress theme (http://themefuse.com/demo/wp/envision/). This theme has image sliders and tab boxes that use JQuery scripts. This works perfectly untill I add navigation to the page, my external js scripts seem to be completely ignored thus ruining the page layout. Is there anyway to get round this?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    01 Mar 2011
    Link to this post
    Hi Owain,

    Try using the following type of jQuery registration

    <%@ Register Assembly="Telerik.Sitefinity" Namespace="Telerik.Sitefinity.Web.UI" TagPrefix="sf" %>

    <sf:ResourceLinks id="resourcesLinks" runat="server">
        <sf:ResourceFile JavaScriptLibrary="JQuery" />
    </sf:ResourceLinks>

    Try to move the part with the script registration at the bottom of the master page - before the closing form tag.

    Greetings,
    Ivan Dimitrov
    the Telerik team
  3. Owain
    Owain avatar
    3 posts
    Registered:
    25 Jan 2011
    01 Mar 2011
    Link to this post
    I moved the scripts to the bottom of the master page as suggested and it works now, thanks for the tip.
3 posts, 0 answered