Try Now
More in this section

Forums / Bugs & Issues / News Item View Javascript Conflict

News Item View Javascript Conflict

2 posts, 0 answered
  1. Jason Rayner
    Jason Rayner avatar
    9 posts
    13 Apr 2005
    10 Mar 2010
    Link to this post

    We have a site developed in Sitefinity 3.7.2057.2 that is having a javascript library conflict with one the implemented modules. When implementing a news view and looking at an individual news Item Sitefinity seems to be injecting jQuery 1.3.1. We are using jQuery 1.4.1 throughout the site for our navigation and other functions. When viewing the listing of news items everything works fine but when navigating to a detailed new page to view that news item the following is found to the head.

    <script src="/WebResource.axd?d=PUkQpzcR35Y51tuvlRy9WUCxxDVddKh30Y_wUczfBBZcCKUYlFna9ZcpWn9UqWvglve3va7XIfCd8jH4Qmt2CXCaUPpLjXy6rTWIHe7CNuc1&amp;t=633952558620000000" type="text/javascript"></script>

    Once this happens most of our Javascript functions that require jQuery stop working. Upon closer inspection we find that the rendered script is jQuery v1.3.1. We cannot find any reference to this javascript library or any way to turn it off.

    Please advise on how I can turn this off or otherwise circumvent this behaviour.


    Jason Rayner
    Outcrop Yukon Ltd.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    19 Oct 2016
    10 Mar 2010
    Link to this post
    Hello Jason Rayner,

    You could try mapping the external template for details mode -ListPageDetails.ascx to your NewsView control ( How to map a template) . To map the template you can use Advanced tab of the Control where you can set SingleItemTemplatePath property to point to the external template.

    In this template there is a declaration of JsFileLink control which adds the jQuery script. You may delete the control and the embedded resource will not be added anymore to the page header. This should fix your problem.

    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered