Can you fix this bug? (Fix included)

Last post 03-17-2009, 3:07 AM by Flintstone. 2 replies.
Sort Posts: Previous Next
  •  03-16-2009, 1:14 PM 49941

    Can you fix this bug? (Fix included)

    For some time we have been receiving occasional random Javascript errors in IE7 and have found the solution. Can you add this fix to Cute Editor so that we do not need to hack the implementation file each time we update?

    Inside of IE_Implementation\CuteEditorImplementation.js the first part of function Ox93a reads like this:
    1. function Ox93a() {  
    2.   Ox777(Ox6f2, OxO9f54[1297], function () {editdoc[OxO9f54[15]].focus();}); 
    This causes a number of issues and hard to find Javascript errors in IE7 when the editor is hidden. It appears that under certain circumstances IE7 focuses the iframe when the editors div is set to display:none. IE7 then throws an error because an element cannot be focused when it is hidden ;o)

    Can you please change it to:
    1. function Ox93a() {  
    2.   Ox777(Ox6f2, OxO9f54[1297], function () {try{editdoc[OxO9f54[15]].focus();}catch(e){}}); 
    This solves the problem and will mean that cute editor behaves better when this situation is encountered.
     
    Can you please give me some feedback on whether you will implement this change?
    Filed under:
  •  03-16-2009, 3:33 PM 49957 in reply to 49941

    Re: Can you fix this bug? (Fix included)

    Flintstone,
     
    We are investigating this issue and will get back to you as soon as possible.

    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-17-2009, 3:07 AM 49975 in reply to 49957

    Re: Can you fix this bug? (Fix included)

    It was my fault ... I was calling editor.FocusDocument() after the editor was hidden and this was causing the error.
View as RSS news feed in XML