Quick question about dhtmlx.alert.

Hi all,

Here is the code:

function doOnCellEdit(stage,rId){
	  if (stage==2) {
	  var olddate=mygrid.cells(rId,3).getValue();
	  var newdate=mygrid.cells(rId,4).getValue();
	  if (olddate > newdate){
	  dhtmlx.alert("wrong date");
	  return false;}
			return true;

I want to use dhtmlx.alert() to show the error message, but is seems to only work with alert().


dhtmlx.alert will not block javascript execution
so code will not wait and will continue execution ( return false and further event processing )

Only native alert and native confirm boxes can block script execution.