+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / b is not defined

b is not defined

6 posts, 0 answered
  1. Henrik
    Henrik avatar
    20 posts
    Registered:
    10 Jun 2010
    08 Jul 2010
    Link to this post
    When editing a template; actually when trying to re-enable javascript for the menu in order to not have javascript errors on the live site, the CMS bugs out (js-wise) and says here:

    window.radopen=function(a,c){var b=GetRadWindowManager();
    return b.open(a,c);
    };

    b is undefined.

    So because I disable js for a menu, the cms breaks in edit mode? How can I re-enable the menu javascript?

    This is a rather urgent bug as I can't have a site that throws errors.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Jul 2010
    Link to this post
    Hello Henrik,

    The embedded resources should be disabled only in case you have some equivalent resources that will replace the default one. You could take a look at disabling_embedded_resources. All Rad Controls from ASP.NET AJAX use Asynchronous JavaScript and these controls cannot work properly without these scripts.

    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
  3. Henrik
    Henrik avatar
    20 posts
    Registered:
    10 Jun 2010
    09 Jul 2010
    Link to this post
    Hello Ivan,

    This is not a bug on the rendered web site but in the backend. I may very well not be justified in disabling all scripts, but doing so causes the designer (where you drag and drop controls) to throw an error.

    Even if I wanted to, I have no (obvious) way of re-enabling the scripts.

    How do I re-enable scripts so that I can edit the component again?

    Henrik
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Jul 2010
    Link to this post
    Hi Henrik,

    You can place the control in a user or custom control. Then in PageLoad you can check whether  you are in edit mode or not. If you are in edit mode enable RadMenu scripts, otherwise they will be disabled

    if(HttpContext.Current.Request.QueryString[ "cmspagemode"] == "edit")
        {
           //here disable RadMenu scripts
        }


    Sincerely yours,
    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
  5. Henrik
    Henrik avatar
    20 posts
    Registered:
    10 Jun 2010
    09 Jul 2010
    Link to this post
    Isn't your suggestion a bugfix? If I place SiteMenu in a custom control, doesn't it also lose its settings that I have assigned it, as I would have to first delete the old control and then add the new one (in which I have inherited the SiteMenu class)?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Jul 2010
    Link to this post
    Hello Henrik,

    The SiteMenu wraps RadMenu, please check the source of the control under Sitefinity\UserControls\Navigation35\SiteMenu.ascx. Furthermore this is a simple user control which code is full exposed. You can modify the control directly which does not require replacing the old one.

    Best wishes,
    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
Register for webinar
6 posts, 0 answered