Firefox div tag issue, CE is disabled with errors

Last post 12-18-2008, 11:56 AM by CSVal. 5 replies.
Sort Posts: Previous Next
  •  08-10-2005, 4:16 PM 9470

    Firefox div tag issue, CE is disabled with errors

    Ok, I have CE in a div tag that comes up invisible. Then say I show CE after the user clicks a button. In firefox, CE is now disabled and I cannot type anything in it.  Example code:
     
    <input type="button" value="test" onclick="document.getElementById ('divTEST').style.display = '';">
    <div id="divTEST" style="DISPLAY:none">
     <CE:Editor id="txtTest" runat="server" width="100%" Height="400px" ShowHtmlMode="False"></CE:Editor>
    </div>
     
    In Internet Explorer there are no issues with this code.
    In Firefox 1.0.6 CE is disabled, and there are a bunch of JavaScript errors in the JavaScript console such as

    Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.designMode]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://localhost/Kaneva/CuteSoft_Client/CuteEditor/CuteEditor_Gecko.js.aspx?settinghash=1a00761b :: CuteEditor_Gecko_Initialize :: line 11"  data: no]

    Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.designMode]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: http://localhost/Kaneva/CuteSoft_Client/CuteEditor/CuteEditor_Gecko.js.aspx?settinghash=c9b399e9 :: CuteEditor_Gecko_Initialize :: line 11"  data: no]
      
    Is there a known issue with this or a fix available?

    Jason
  •  08-15-2005, 1:57 PM 9580 in reply to 9470

    Re: Firefox div tag issue, CE is disabled with errors

    Jaosn,
     
    Please use the following code:
     
    <input type="button" value="test" onclick="document.getElementById ('CE_txtTest_ID').style.visibility = '';"> <CE:Editor id="txtTest" runat="server"></CE:Editor><br> <script> document.getElementById('CE_txtTest_ID').style.visibility="hidden"; </script>

    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

  •  08-15-2005, 2:46 PM 9582 in reply to 9580

    Re: Firefox div tag issue, CE is disabled with errors

    Thank you for the sample code. I thought you might suggest that solution with the example I gave. What I am actually try to do is show status text when the page is rendering (pre form onload) or on a postback from a dropdown or checkbox that tells the user the page is rendering, loading, refreshing, etc. 

    Your solution will work for me but I have to put in a lot of special handling in just for cute editor, I could not find a way to get it to come up correctly in a hidden div tag (My ideal solution to keep code at the minimal).  So, instead of one div tag, I have to spilt it up into multiple div tags before and after all my cute editors, and put special javascript on every postback javascript click to hide cuteeditor. If I come up with a more elegant solution I will post the results here.
     
    Thanks for the help,
    Jason
  •  03-26-2007, 11:04 AM 27742 in reply to 9470

    Re: Firefox div tag issue, CE is disabled with errors

    I have same problem.  No idea how to fix.
     
    Bill Mild
  •  03-26-2007, 2:53 PM 27760 in reply to 27742

    Re: Firefox div tag issue, CE is disabled with errors

    Bill Mild:
    I have same problem.  No idea how to fix.
     
    Bill Mild
     
    Bill,
     
    Please check the following example:
     
     
    Keep me posted
     
     

    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

  •  12-18-2008, 11:56 AM 47101 in reply to 27760

    Re: Firefox div tag issue, CE is disabled with errors

    I have the same issue with Firefox 3.0.2 and CuteEditor 6.2. I cannot data enter and when I click on the bold button, for instance, I get:  Command 'Bold' Error : Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand].

    I understand the suggested workaround in the div styling rather than setting visible to true/false as in below:
     
     
    but making this change will not be so simple in my application.  My cuteEditor elements are embedded in usercontrols within a framework and are hidden at the level of a parent of a parent of a parent element
     
    I have no issue in any other browser.  Are there any other suggested workarounds?
View as RSS news feed in XML