Cute Editor Javascript error from CuteEditorImplementation.js (element 'CE_Editor_ID_Frame' not found)

Last post 03-09-2009, 11:16 AM by Flintstone. 3 replies.
Sort Posts: Previous Next
  •  03-09-2009, 5:10 AM 49616

    Cute Editor Javascript error from CuteEditorImplementation.js (element 'CE_Editor_ID_Frame' not found)

    Hi
     
    We have been receiving Javascript errors for some time that have been breaking pages. Upon investigation we have discovered that these customers are occasionally receiving the following Javascript error:
    "element 'CE_Editor_ID_Frame' not found"
     
    It is very difficult to replicate this error (it is probably a complex timing issue) but enough customers use our web app for this to have become a major issue for us.
     
    It appears that this error is originating in CuteEditorImplementation.js from the function "Frame_GetContentWindowin" ... at the end of this function is the following line:
    Debug_Todo('//TODO:frame contentWindow not found?');
     
    Considering that CE_Editor_ID_Frame is the ID of the contentWindow it is fairly obvious that it is because this error is not handled it is causing of the error.
     
    Can you please fix this ... maybe use setTimeout to call the function again until it successfully gets the contentWindow?
    Filed under:
  •  03-09-2009, 9:31 AM 49625 in reply to 49616

    Re: Cute Editor Javascript error from CuteEditorImplementation.js (element 'CE_Editor_ID_Frame' not found)

    Hi,
     
    It's a interesting issue , because it's not the contentWindow not loaded or not found.
     
    The <iframe/> element is not found..
     
    We are investigating on this issue and try to find the reason.
     
    Regards,
    Terry
  •  03-09-2009, 9:37 AM 49626 in reply to 49616

    Re: Cute Editor Javascript error from CuteEditorImplementation.js (element 'CE_Editor_ID_Frame' not found)

    Can you try the following code and get back to me?
     
    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <%@ Page language="c#"%>
    <html><head></head><body><form id="Form1" method="post" runat="server">
    <CE:EDITOR id="Editor1" Autoconfigure="Simple" runat="server"></CE:EDITOR>
    </form></body></html>

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-09-2009, 11:16 AM 49639 in reply to 49626

    Re: Cute Editor Javascript error from CuteEditorImplementation.js (element 'CE_Editor_ID_Frame' not found)

    Your code works fine. This is not really a surprise as this issue rarely happens, but rarely * 1,000,000+ = regularly :o(
     
    I am fairly certain it must be a timing issue. Maybe when our clients server is under heavy load the iframe is not served quickly enough. Could it be that Cute Editor attempts to access the iFrame before it is fully initialised?
View as RSS news feed in XML