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

  •  02-22-2005, 5:59 AM

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

    Adam - I can't seem to capture the key value in the event.  I have included a code snipet below.  Can you tell me where I am going wrong?  I tried window.event too - but no go.

    function quickEnter(evt) {
      var key = (evt) ? evt.which : event.keyCode;
      alert(key);
    }
    function body_onLoad() {
      var myMessage = document.getElementById('CE_MyMessage_ID');
      if (!myMessage) return;
      var editdoc=myMessage.GetDocument();
      editdoc.onkeydown=quickEnter;
    }
     
    regards,
    Dave
View Complete Thread