Home: htmlArea 3 (beta): htmlArea 2 & 3 archive (read only): htmlArea v3.0 - Feature Requests:
IsChanged propperty



irobotst
Novice

Jan 25, 2005, 11:18 PM


Views: 10517
IsChanged propperty

We want to find out if an user changed the contence of the aerea, before he submits the form. Maybe a little sign appears on the toolbar


nikotto
User

Jan 27, 2005, 11:57 PM


Views: 10438
Re: [irobotst] IsChanged propperty

you can use the onChange-Event...


irobotst
Novice

Feb 1, 2005, 12:11 PM


Views: 10384
Re: [nikotto] IsChanged propperty

It semms not as easy as you think. The onchange-of the textarea will not work.

The onchange of the editor will not work too. I tried to add an new event-Handler:

HTMLArea._addEvents (editor._iframe.contentWindow.document,["change"], function (event)
{
alert('change');
}
);

After the part:

HTMLArea._addEvents (doc, ["keydown", "keypress", "mousedown", "mouseup", "drag"], ....

and I tried it with various element-objects like editor._iframe.contentWindow.document.body etc.

No change event will be shown.

Now I think it will be added to every "keydown", "keypress", "mousedown", "mouseup", "drag" - Event t scan if the user has ch<anged the text.