Re: How can i detect changed text in CE on the clientside?

  •  12-28-2004, 4:53 PM

    Re: How can i detect changed text in CE on the clientside?

     
    It's very easy to attach the event to the editor on the client side. This is an example:

    Client side event examle:

    <script>
    function test () {
        var editor1=document.getElementById('<%=Editor1.ClientID%>');
        var editdoc = editor1.GetDocument();
        editdoc.onclick=helloworld;
    }
    function helloworld() {
        alert("hello world");
    }
    </script>
    <body onload="test()">



    Below is the Iframe event list (copying from MSDN). You can choose the appropriate event for your situation:
     

    Event

    Description

    onactivate

    Fires when the object is set as the active element.

    onafterupdate

    Fires on a databound object after successfully updating the associated data in the data source object.

    onbeforedeactivate

    Fires immediately before the activeElement is changed from the current object to another object in the parent document.

    onbeforeupdate

    Fires on a databound object before updating the associated data in the data source object.

    onblur

    Fires when the object loses the input focus.

    oncontrolselect

    Fires when the user is about to make a control selection of the object.

    ondeactivate

    Fires when the activeElement is changed from the current object to another object in the parent document.

    onerrorupdate

    Fires on a databound object when an error occurs while updating the associated data in the data source object.

    onfocus

    Fires when the object receives focus.

    onload

    Fires immediately after the browser loads the object.

    onmove

    Fires when the object moves.

    onmoveend

    Fires when the object stops moving.

    onmovestart

    Fires when the object starts to move.

    onreadystatechange

    Fires when the state of the object has changed.

    onresizeend

    Fires when the user finishes changing the dimensions of the object in a control selection.

    onresizestart

    Fires when the user begins to change the dimensions of the object in a control selection.

    ontimeerror

    Fires whenever a time-specific error occurs, usually as a result of setting a property to an invalid value.


    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