Welcome Guest Search | Active Topics | Sign In | Register

Javascript errors when editor loads Options
Tyrone
Posted: Wednesday, September 30, 2009 8:23:07 AM
Rank: Newbie
Groups: Member

Joined: 9/23/2009
Posts: 2
Hi

I have added a standard editor to a user control and two javascripts errors pop up everytime the control loads. The toolbarset is standard and the skin is office2003. I am using VS2005 on Framework 2.2.

The EO object is within a user control which is loaded into an .aspx dynamically at runtime using LoadControl.

The user control .ascx is
Code: HTML/ASPX
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Paragraph-Edit.ascx.cs" Inherits="LiloCMS.WebParts.Generic.Paragraph_Edit" %>
<%@ Register Assembly="EO.Web" Namespace="EO.Web" TagPrefix="eo" %>
<div id="editorcontainer">
    <eo:Editor Width="800px" Height="540px" ID="Editor1" runat="server" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" HighlightColor="255, 255, 192">
        <FooterStyle CssText="border-right: gray 1px solid; padding-right: 2px; border-top: gray 1px; padding-left: 2px; padding-bottom: 2px; border-left: gray 1px solid; padding-top: 2px; border-bottom: gray 1px solid; background-color: #fafafa" />
        <BreadcrumbItemStyle CssText="border-right: darkgray 1px solid; padding-right: 3px; border-top: darkgray 1px solid; margin-top: 1px; padding-left: 3px; font-size: 12px; padding-bottom: 1px; border-left: darkgray 1px solid; padding-top: 1px; border-bottom: darkgray 1px solid; font-family: tahoma" />
        <EmoticonStyle CssText="background-color:white;border-bottom-color:#c5d3ed;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#c5d3ed;border-left-style:solid;border-left-width:1px;border-right-color:#c5d3ed;border-right-style:solid;border-right-width:1px;border-top-color:#c5d3ed;border-top-style:solid;border-top-width:1px;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px;" />
        <BreadcrumbItemHoverStyle CssText="border-right: darkgray 1px solid; padding-right: 3px; border-top: darkgray 1px solid; margin-top: 1px; padding-left: 3px; font-size: 12px; padding-bottom: 1px; border-left: darkgray 1px solid; padding-top: 1px; border-bottom: darkgray 1px solid; font-family: tahoma; background-color:#e0e0e0;" />
        <HeaderStyle CssText="border-right: gray 1px solid; border-top: gray 1px solid; border-left: gray 1px solid; border-bottom: gray 1px" />
        <BreadcrumbItemSeparatorStyle CssText="width: 3px; height: 10px" />
        <EmoticonDropDownStyle CssText="border-top: gray 1px solid; border-right: gray 1px solid; padding-right: 2px; border-top: gray 1px; padding-left: 2px; padding-bottom: 2px; border-left: gray 1px solid; padding-top: 2px; border-bottom: gray 1px solid; background-color: #fafafa" />
        <BreadcrumbLabelStyle CssText="padding-right: 6px; padding-left: 6px; font-size: 12px; padding-top: 1px; font-family: tahoma" />
        <BreadcrumbDropDownStyle CssText="border-top: gray 1px solid; border-right: gray 1px solid; padding-right: 2px; border-top: gray 1px; padding-left: 2px; padding-bottom: 2px; border-left: gray 1px solid; padding-top: 2px; border-bottom: gray 1px solid; background-color: #fafafa" />
        <TabButtonStyles>
            <NormalStyle CssText="border-right: #335ea8 1px; padding-right: 7px; border-top: #335ea8 1px; padding-left: 7px; font-size: 12px; padding-bottom: 3px; border-left: #335ea8 1px; padding-top: 3px; border-bottom: #335ea8 1px; font-family: tahoma; background-color: white" />
            <HoverStyle CssText="border-right: #335ea8 1px solid; padding-right: 6px; border-top: #335ea8 1px solid; padding-left: 6px; font-size: 12px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; font-family: tahoma; background-color: #c2cfe5" />
            <SelectedStyle CssText="border-right: #335ea8 1px solid; padding-right: 6px; border-top: #335ea8 1px solid; padding-left: 6px; font-size: 12px; padding-bottom: 2px; border-left: #335ea8 1px solid; padding-top: 2px; border-bottom: #335ea8 1px solid; font-family: tahoma; background-color: white" />
        </TabButtonStyles>
        <EditAreaStyle CssText="border-right: gray 1px solid; padding-right: 0px; border-top: gray 1px solid; padding-left: 0px; padding-bottom: 0px; border-left: gray 1px solid; padding-top: 0px; border-bottom: gray 1px solid" />
    </eo:Editor>
</div>


The .aspx is
Code: HTML/ASPX
<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" CodeBehind="WebPartEditDlg.aspx.cs" Inherits="LiloCMS.WebPartEditDlg" %>
<%@ Register Src="Admin/Controls/ModalMessage.ascx" TagName="ModalMessage" TagPrefix="uc1" %>

<!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>Edit Component</title>
    <asp:Panel runat="Server" ID="pnlScripts">
        <link href="<%=ResolveUrl("~/") %>Assets/Stylesheets/CMS.css" rel="stylesheet" type="text/css" />
        <script language="javascript" type="text/javascript" src="<%=ResolveUrl("~/") %>Assets/Javascripts/CMS.js"></script>
        <script language="javascript" type="text/javascript" src="<%=ResolveUrl("~/") %>Assets/Javascripts/prototype.js"></script>
    </asp:Panel>
</head>
<body style="padding:0px;margin:0px;">
    <form id="form1" runat="server" >
    <ajaxToolkit:ToolkitScriptManager runat="server" id="ScriptManager"></ajaxToolkit:ToolkitScriptManager>

    <div class="LiloCMS_ModalContainer">
        <div style="max-height:560px;overflow:auto;width:100%;">
            <ajax:UpdatePanel runat="server" ID="upControlContainer">
            <ContentTemplate>
                <asp:Panel runat="server" id="pnlControlContainer"></asp:Panel>
            </ContentTemplate>
            </ajax:UpdatePanel>
        </div>
        <div style="height:40px;padding-top:10px;">
            <div style="float:right">
                <asp:Button runat="server" ID="btnSave" Text="Save" OnClick="btnSave_Click"/>
                <input type="button" value="Close" onclick="Javascript:EditWebPartClose()" />
            </div>
        </div>
    </div>
    <uc1:ModalMessage ID="ModalMessageControl" runat="server" />
    </form>
    <script type="text/javascript">
    window.focus();
    </script>
</body>
</html>


The Error messages are

Line: 6
Error: 'undefined' is null or not an object

and

Line: 6
Error: Object doesn't support this property or method

Any ideas?

Thanks
Tyrone.
eo_support
Posted: Wednesday, September 30, 2009 9:02:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Your code looks fine to us except that we can not run it to see the problem. Can you try to isolate the problem into a test project and send to us? Once we have that we will try to run it here. If that produces the same error, then it should not be difficult for us to tell you what's wrong.

Thanks!
Tyrone
Posted: Wednesday, September 30, 2009 9:26:06 AM
Rank: Newbie
Groups: Member

Joined: 9/23/2009
Posts: 2
Hi

A link to a test project :
Test Project

The problem seems to be that the EO scripts are not compatible with the prototype framework.
As soon as I add that back in the errors appear.
Could you see if its possible to make them compatible.
Cant really see whats happening in the EO scripts as they are obsfucated.

Thanks.
eo_support
Posted: Wednesday, September 30, 2009 9:49:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

Thanks for the test project. It does appear to be a conflict with prototype framework. We are able to see the problem and we will see if we can change our code to workaround it. We will rely again as soon as any as any progress is made. Hopefully the issue can be resolved this week.

Thanks!
eo_support
Posted: Friday, October 2, 2009 2:10:56 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
We have posted a new build that addressed this issue. Please see your private message for download location.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.