Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Bugs & Issues > News Item View Javascript Conflict

News Item View Javascript Conflict

  • Jason Rayner avatar

    Posted on Mar 9, 2010 (permalink)

    Greetings,

    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.

    Regards,

    Jason Rayner
    Outcrop Yukon Ltd.

    Reply

  • Ivan Dimitrov Ivan Dimitrov admin's avatar

    Posted on Mar 10, 2010 (permalink)

    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.

    Regards,
    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.

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity 3.x: Bugs & Issues > News Item View Javascript Conflict