Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
560
How implement a checkDirty concept
posted

Hello,

I am using the WebHtmlEditor control within an application that enables/disables buttons based on the 'dirtyness' of the form.

I would like to implement the same concept on a page that contains this control. However, the client-side events KeyPress and KeyDown fire before the content has been updated. This is preventing me from comparing the current content with the original content when a key is pressed.

I am aware the same behaviour happens with all standard HTML controls when using Internet Explorer (that is the only browser supported by the application). However, standard HTML controls also implement a KeyUp handler which would work for me.

Is there a property/method that i can use when a key is pressed to check the current value (including the last key stroke)??

Any help would be greatly appreciated.
Martyn...