Editor Unusable under certain circumstances in Safari

  •  09-01-2009, 4:55 PM

    Editor Unusable under certain circumstances in Safari

    I have created an example.  Please go to http://kratos-dev.perfpathways.com/CuteEditorTest.aspx using Safari 4.0 (PC or Mac).  Then click the button that says "ShowEditor".  The page loads fine the first time but if you reload/refresh the page and click the button again the WYSIWYG doesn't have any contents and you cannot click into it.  I've narrowed it down to Editors contained in templated controls being made visible via a partial page update (asp:UpdatePanel, in the example, the inner UpdatePanel is only used because its the simplest control with a template field.).  I have a custom templated control that has the same problem.  I have no problem implementing a fix in that control instead of waiting for a new release of CuteEditor but I need help as to which javascript to run etc. I've tried reloading the src of the iframe for the WYSIWYG.  This appears to fix the problem but then the contents of the WYSIWYG don't get reported back to the server upon postback.  Also, non of this happens in any other browser.  This seems like a minor problem but in our project if we can't get this fixed quick I will have to do a lot of coding to get around it and go-live is just around the corner.
     
    Here is my code:
     
    1. <%@ Page Language="VB" %>  
    2.   
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    4.   
    5. <script runat="server">  
    6.     Protected Sub btnShowEditor_Click(ByVal sender As ObjectByVal e As System.EventArgs)  
    7.         upInner.Visible = True  
    8.         upOuter.Update()  
    9.     End Sub  
    10. </script>  
    11.   
    12. <html xmlns="http://www.w3.org/1999/xhtml" >  
    13. <head runat="server">  
    14.     <title>Cute Editor Test</title>  
    15. </head>  
    16. <body>  
    17.     <form id="form1" runat="server">  
    18.     <div>  
    19.         <asp:ScriptManager ID="ScriptManager1" runat="server">  
    20.         </asp:ScriptManager>  
    21.         <asp:UpdatePanel ID="upOuter" runat="server"  
    22.             UpdateMode="Conditional">  
    23.             <ContentTemplate>  
    24.                 <asp:UpdatePanel ID="upInner" runat="server" Visible="False">  
    25.                     <ContentTemplate>  
    26.                         <CE:Editor ID="Editor1" runat="server" Text="testme" Visible="True">  
    27.                         </CE:Editor>  
    28.                     </ContentTemplate>  
    29.                 </asp:UpdatePanel>  
    30.                 <asp:Button ID="btnShowEditor" runat="server" OnClick="btnShowEditor_Click" Text="ShowEditor" />  
    31.             </ContentTemplate>  
    32.         </asp:UpdatePanel>  
    33.     </div>  
    34.     </form>  
    35. </body>  
    36. </html> 
     
    Thanks in advance for your help,
    bczengel
View Complete Thread