How can i return what the BreakElement is in JS (Javascript)

Last post 07-21-2010, 9:10 PM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  07-21-2010, 1:29 PM 62659

    How can i return what the BreakElement is in JS (Javascript)

    Hello there,
     
    How can i return what the BreakElement is in JS (Javascript)?
     
    Thanks!

    Eric
    Filed under:
  •  07-21-2010, 9:10 PM 62661 in reply to 62659

    Re: How can i return what the BreakElement is in JS (Javascript)

    Hi mreric,
     
    Try
     
    1. <%@ Page Language="C#" %>   
    2.   
    3. <%@ Register Assembly="CuteEditor" Namespace="CuteEditor" TagPrefix="CE" %>   
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
    5. <html xmlns="http://www.w3.org/1999/xhtml">   
    6. <head id="Head1" runat="server">   
    7.     <title>Untitled Page</title>   
    8. </head>   
    9. <body>   
    10.     <form id="form1" runat="server">   
    11.         <CE:Editor ID="Editor1" runat="server" BreakElement="P">   
    12.         </CE:Editor>   
    13.         <input type="button" value="show break element" onclick="showBreakElement()" />   
    14.     </form>   
    15. </body>   
    16. </html>   
    17.   
    18. <script>   
    19. function showBreakElement()   
    20. {   
    21.     alert("<%= Editor1.BreakElement %>");   
    22. }   
    23. </script>  
    Regards,
     
    ken
View as RSS news feed in XML