Re: Using jQuery to access getHTML

  •  11-17-2009, 7:38 PM

    Re: Using jQuery to access getHTML

    Hi Lharris,
     
    I tested your code, it works for me.
     
    Can you try the example below on you site?
    1. <%@ Page Language="C#" AutoEventWireup="True" %>   
    2.   
    3. <%@ Register Namespace="CuteEditor" Assembly="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  
    5.     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    6. <html xmlns="http://www.w3.org/1999/xhtml">   
    7. <head id="Head1" runat="server">   
    8. </head>   
    9. <body>   
    10.     <form id="Form1" runat="server">   
    11.         <CE:Editor ID="txtEditorEnglish" runat="server">   
    12.         </CE:Editor>   
    13.         <input type="button" value="show" onclick="showContent()" />   
    14.     </form>   
    15. </body>   
    16. </html>   
    17.   
    18. <script type="text/javascript">   
    19. function showContent()   
    20.     {   
    21. var HTMLBodyEnglish = document.getElementById('<%= txtEditorEnglish.ClientID%>');   
    22. var content = HTMLBodyEnglish.getHTML();   
    23. alert(content);   
    24.     }   
    25. </script>  

    Keep me posted.
     
    Regards,
     
    Ken
View Complete Thread