DhtmlxForm allows to handle different kinds of events in an application.
You can attach several handlers to the same event, and all of them will be executed.
Event names are case-insensitive.
If you need to attach event to an application, use attachEvent() method.
myform.attachEvent(evName, evHandler);
You can also delete event if you need. The detachEvent() method helps you here.
var id = myform.attachEvent("onDirty",some_code);
...
myform.detachEvent(id);
The following events are available in dhtmlxForm:
Loading related:
onXLS - occurs before the request for a new
XML was sent to the server;
onXLE - occurs simultaneously with ending
XML of parsing, new data is already processed by the form.
Binding related events:
onBeforeDataLoad - occurs when data from server is loaded but before it set in form
-
-
onBeforeRemove - occurs when signal to delete current record is received
-
-
-
onDirty - occurs before form reloading with different data, when data in existing form was changed but not saved