...

Code Block
languagejs
var Warning_Win = new canvas.Dialog(
	{ 
		title : 'Dialog Window Title', 
		dialogType : 'WARN_EDIT_OK', 
		message : 'Detailed warning message', 
	
	editHandler : function ()
	{
		Warning_Win.close(); //Your Ok action goes here
	}, 
	
	okHandler : function ()
	{
		//Your Ajax request to continue the action
	} 
}); 

...