More in this section

Forums / General Discussions / Extra code thrown on pages

Extra code thrown on pages

2 posts, 0 answered
  1. Andrey
    Andrey avatar
    3 posts
    Registered:
    18 Jul 2012
    01 Jun 2011
    Link to this post
    We have a master page to output to Microsoft Word, and everything works well EXCEPT when the final output is generated, the following is appended to the end of the page:

    ----------------------------------------------------------------------------------------------------------------------------------
    <script type="text/javascript">
    //<![CDATA[
    ;(function() {
                            function loadHandler() {
                                var hf = $get('ctl06_TSSM');
                                if (!hf._RSSM_init) { hf._RSSM_init = true; hf.value = ''; }
                                hf.value += ';Telerik.Sitefinity.Resources, Version=4.0.1210.0, Culture=neutral, PublicKeyToken=null:en-US:78c5c361-7b1d-4fb8-8ca3-a9e273e832dd:d271177c:dff30785';
                                Sys.Application.remove_load(loadHandler);
                            };
                            Sys.Application.add_load(loadHandler);
                        })();//]]>
    </script>
    ----------------------------------------------------------------------------------------------------------------------------------

    Why is this happening? is there a setting somewhere that needs to be flipped to stop this from happening?

    Thanks in advance!
    -A
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Sep 2017
    02 Jun 2011
    Link to this post
    Hello Andrey,

    Unfortunately the code for the load handler is needed for loading Sitefinity resources. When you add more widgets to a page, resources for them will be added, under that code. If you try to delete some of the script references trough the backend, Sitefinity will not function correctly and will throw "Object reference not set to an instance of an object" error.

    Regards,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested 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