CuteEditor onchange event fired only after a few seconds after change.

Last post 11-28-2008, 7:19 AM by tonyjepson. 3 replies.
Sort Posts: Previous Next
  •  11-24-2008, 11:17 PM 46262

    CuteEditor onchange event fired only after a few seconds after change.

    Hi,
     
    Cute editor onchange event is not firing imediatly after change. Could you give me some alternative way or fix to this isssue ?
     
    Thanks in advance
  •  11-27-2008, 6:33 AM 46335 in reply to 46262

    Re: CuteEditor onchange event fired only after a few seconds after change.

    hi tonyjepson,
     
    OnTextChange only fire when the page is PostBack, please try this code:
     

    <%@ Page Language="C#" %>

    <%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
    <html>
    <body>
        <form runat="server" id="Form1">
            <CE:Editor ID="Editor1" OnTextChanged="Submit" runat="server">
            </CE:Editor>
            <asp:Literal ID="Literal1" runat="server" /><br />
            <asp:Button ID="button1" runat="server" Text="WhenTextChangeClickMe" />
        </form>
    </body>
    </html>

    <script runat="server">
        public void Submit(object sender, System.EventArgs e)
        {
            Literal1.Text = "<h2>The HTML you typed is...</h2><br>";
            Literal1.Text += Server.HtmlEncode(Editor1.Text);
        }
    </script>

     Regards,
     
    Ken
  •  11-27-2008, 2:38 PM 46341 in reply to 46262

    Re: CuteEditor onchange event fired only after a few seconds after change.

    Tony,
     
    The value between the last keystroke and the firing of that event is configurable.
     
    Try add the following code into your page:
     
    <script>
       KEYDOWN_NOTIFYCHANGEDELAY=5000
    </script>
     
    Keep me posted
     
    Ken,
     
    Tony is talking about the client side onchange event instead of server side event.

    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

  •  11-28-2008, 7:19 AM 46401 in reply to 46341

    Re: CuteEditor onchange event fired only after a few seconds after change.

    Ken,
    Adam was correct. My point is client side event.
     
    Adam,
     
    Thanks for your reply.
     
    I tried your suggestion but it didnt work for me.
     
    My code sample is here...
     

    <script language="javascript" type="text/javascript">

    KEYDOWN_NOTIFYCHANGEDELAY=100;

    //some other scripts...
    </script>

    Additional information.
    Currenty we are using evaluation version of cute editor. My cute editor object is insde a user control.

    C# code
    //iFrameDescription is the cute editor object.
    iFrameDescription.Attributes[
    "onchange"] = changeTrackingScript;
     
View as RSS news feed in XML