Re: CuteEditor_OnInitialized does not get fired in Safari and Chrome Browsers

  •  12-17-2010, 1:25 AM

    Re: CuteEditor_OnInitialized does not get fired in Safari and Chrome Browsers

    Hi sanjay.joshi,
     
    Please add the code below into your page and try again
     
    ------------------------------------------------------------------------------------------------------
     
    <script runat="server">

        public string loaderName;

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            System.Web.HttpBrowserCapabilities browser = Request.Browser;
            string browserName = browser.Browser;

            switch (browserName)
            {
                case "IE":
                    loaderName = "IE_Loader";
                    break;
                case "Firefox":
                    loaderName = "Gecko_Loader";
                    break;
                case "AppleMAC-Safari":
                    loaderName = "Safari_Loader";
                    break;
                case "Opera":
                    loaderName = "Opera_Loader";
                    break;
                default:
                    break;
            }

        }

    </script>

    <script src="CuteSoft_Client/CuteEditor/Scripts/spell.js"></script>

    <script src="CuteSoft_Client/CuteEditor/Scripts/<%=loaderName %>/Loader.js"></script>
     
    ------------------------------------------------------------------------------------------------------
     
    If you still get this issue, please send me the test page, I will check it and get back to you as soon as possible.
     
    Regards,
     
    Ken
View Complete Thread