Extra code thrown on pages
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
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