permission denied to access property 'tagName'

5 posts, 0 answers
  1. Web
    Web avatar
    5 posts
    Member since:
    May 2011

    Posted 17 May 2011 Link to this post

    I'm getting this error message when using radeditor with ToolbarMode="ShowOnFocus" and ContentAreaMode="Div"
    along with any textbox

    As soon as you focus on the TextBox the JS error comes up.

    Using firefox 4. 

    telerik version 2011.1.510.40

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
    <html xmlns="">
    <head runat="server">
        <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <telerik:RadEditor ID="RadEditorFooter" runat="server" ToolbarMode="ShowOnFocus"
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

    How do i fix this?
    thank you
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 20 May 2011 Link to this post


    I have already answered your support ticket on the subject. For convenience I will paste my answer here as well.

    I have logged it into our database for further investigation and we will try to fix it for one of the upcoming releases.

    The problem seems to occur because FireFox renders a div element inside the input element (most probably to apply some decorations) which is not available in the DOM tree. For the time being, to workaround this issue you can use the following JavaScript:
    Telerik.Web.UI.Editor.Utils.isEditorContentArea = function (oElement)
            var result = (oElement && (oElement.tagName == "BODY" || (oElement.tagName == "DIV" && Sys.UI.DomElement.containsCssClass(oElement, "reContentArea")))) ? true : false;
            return result;

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Web
    Web avatar
    5 posts
    Member since:
    May 2011

    Posted 20 May 2011 Link to this post

    that worked. thank you
  4. Oswaldo
    Oswaldo avatar
    1 posts
    Member since:
    Apr 2012

    Posted 12 Apr 2012 Link to this post

    hi, i have the same problem but with radasyncupload i need help. the problem seems to be in radwindowscripts.js help plis. when i upload a 4mb file or small there is no problem, but i want to upload a 9mb or bigger file throws the next error "Permission denied to access property 'tagName' " in radwindowscripts.js in the line 205 --> if(f&&f.tagName.toLowerCase()!="body"){var d=(!$telerik.isDescendant(this._contentElement,f)&&this._dockMode); i cannot solve by myself. i waiting for response... thanks

  5. Rumen
    Rumen avatar
    14462 posts

    Posted 13 Apr 2012 Link to this post


    Have you set maxrequestlength attribute in the web.config file to some larger value than the default one of 4MB (4096), e.g.

    <httpruntime executiontimeout="90"
        apprequestqueuelimit="100" />

    You can read the following article for more information: Uploading Large Files Using Editor (maxRequestLength).

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top