You can attach events to buttons and use this.send to send form contents.
But what if you just want to send some JSON? Is that possible?
In jQuery it’s very easy. Should I use jQuery or can DHTMLX do something similar?
$.ajax({
url : url,
contentType: 'application/json; charset=UTF-8',
dataType : 'json',
data : JSON.stringify(data),
type: 'POST',
// callbacks etc