This is a migrated thread and some comments may be shown as answers.

permission denied to access property 'tagName'

4 Answers 244 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Web
Top achievements
Rank 1
Web asked on 17 May 2011, 07:09 PM
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" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
        <telerik:RadEditor ID="RadEditorFooter" runat="server" ToolbarMode="ShowOnFocus"
            ContentAreaMode="Div">
        </telerik:RadEditor>
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
    </div>
    </form>
</body>
</html>


How do i fix this?
thank you

4 Answers, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 May 2011, 09:40 AM
Hi,

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)
{
    try{
        var result = (oElement && (oElement.tagName == "BODY" || (oElement.tagName == "DIV" && Sys.UI.DomElement.containsCssClass(oElement, "reContentArea")))) ? true : false;
        return result;
    }
    catch(e)
    {
      
    }
}


All the best,
Dobromir
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.

0
Web
Top achievements
Rank 1
answered on 20 May 2011, 02:16 PM
that worked. thank you
0
Oswaldo
Top achievements
Rank 1
answered on 12 Apr 2012, 04:39 PM
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

0
Rumen
Telerik team
answered on 13 Apr 2012, 11:06 AM
Hello,

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"
    maxrequestlength="10000096"
    usefullyqualifiedredirecturl="false"
    minfreethreads="8"
    minlocalrequestfreethreads="4"
    apprequestqueuelimit="100" />

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

Kind regards,
Rumen
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.
Tags
Editor
Asked by
Web
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Web
Top achievements
Rank 1
Oswaldo
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or