Extra code thrown on pages

Posted by Community Admin on 03-Aug-2018 15:26

Extra code thrown on pages

All Replies

Posted by Community Admin on 01-Jun-2011 00:00

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

Posted by Community Admin on 02-Jun-2011 00:00

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

This thread is closed