Can DHTMLX send JSON with AJAX?


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?

	url : url,
	contentType: 'application/json; charset=UTF-8',
	dataType : 'json',
	data : JSON.stringify(data),
	type: 'POST',
	// callbacks etc


Unfortunately there is no ready to use solution for json sending in the dhtmlx lib. So you can go with jQuery for the data sending.