Re: Problem with display:none and firefox

  •  11-07-2012, 9:55 PM

    Re: Problem with display:none and firefox

    earbash:

    Hello Support

     

    Do you have a resolution or workaround for this problem yet?

     

    Please use the following method: 

    1. <!-- #include file = "cuteeditor_files/include_CuteEditor.asp" -->  
    2. <html>  
    3. <head>  
    4.     <title>Firefox designMode display:none</title>  
    5.     <script language="javascript">  
    6.         function hide() {  
    7.             document.getElementById("div1").style.display = "none";  
    8.         }  
    9.         function show() {  
    10.             document.getElementById("div1").style.display = "block";  
    11.         }  
    12.     </script>  
    13.   
    14. </head>  
    15. <body>  
    16.     <form name="theForm" action="/asp/Get_HtmlContent.asp" method="post">  
    17.     <h1>  
    18.         Embed CE into an element that has style set to display:none</h1>  
    19.     <div id="div1">  
    20.         <%  
    21.             dim content  
    22.             content = "Type Here"     
    23.             Dim editor  
    24.             Set editor = New CuteEditor  
    25.               
    26.             editor.ID = "Editor1"  
    27.             editor.Text = "Type Here"  
    28.             editor.Draw()  
    29.         %>  
    30.     </div>  
    31.     <p>  
    32.         <a onclick="hide()" href="#">Hide</a> | <a onclick="show()" href="#">Show</a></p>  
    33.   
    34.     <script>  
    35.         setTimeout(function() { hide(); }, 1000)  
    36.     </script>  
    37.   
    38.     </form>  
    39. </body>  
    40. </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

View Complete Thread