More in this section

Forums / Developing with Sitefinity / EnableEmbeddedScripts Question

EnableEmbeddedScripts Question

2 posts, 0 answered
  1. James Gargan
    James Gargan avatar
    3 posts
    Registered:
    12 Aug 2009
    07 Jul 2010
    Link to this post
    Hi Telerik,

    We are currently trying to apply custom behaviour on our RadMenu & wish to first disable all the generated scripts & behaviour. We have included the line EnableEmbeddedScripts="False" into our .skn file, however when doing this, the browser throws errors on pageload. According to the Firefox Error Console, this error is:

    Error: Telerik is not defined
    Source File: xxxx
    Line: 312
    $create(Telerik.Web.UI.RadMenu, {"_childListElementCssClass":null,"_skin":"Menu","clientStateFieldID":"ctl00_header_util_tm_sitefinity_usercontrols_navigation35_sitemenu_ascx1_RadMenu1_ClientState","collapseAnimation":"{\"duration\":450}","expandAnimation":"{\"duration\":450}","itemData":[{"value":"Home","navigateUrl":"~/"},{"value":"Contact Us","navigateUrl":"~/Utilities/ContactUs.aspx"},{"value":"FAQ","navigateUrl":"~/Utilities/FAQ.aspx"},{"value":"Faculties","navigateUrl":"~/Utilities/Faculties.aspx"},{"value":"Blog","navigateUrl":"~/Utilities/Blog.aspx"},{"value":"Videos","navigateUrl":"~/Utilities/Videos/Recent_Videos.aspx"}]}, null, null, $get("ctl00_header_util_tm_sitefinity_usercontrols_navigation35_sitemenu_ascx1_RadMenu1"));

    This code is being generated just before the </form> tag - is there anyway of disabling this code as well?

    Thanks,

    James Gargan
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    07 Jul 2010
    Link to this post
    Hello James Gargan,

    You can disable embedded resources only in case you have identical scripts/ styles that will replace the built-in one. For more information please refer to Disabling embedded resources

    Greetings,
    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