Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cleverson Viana on Jul 05, 2009 17:29
open dhtmlx forum
dhtmlx Scheduler

I have a onBeforeEventDelete function like this:

function delete(event_id){
callAjaxDeleta(event_id);
}

My ajax functions is working and deleting from my db. But the event continue in the screen.

I tried to do something like this:

function delete(event_id){
callAjaxDeleta(event_id);
scheduler.deleteEvent(event_id);
}

But shows me this error:

Error Out of Strack Space : dhtmlxscheduller.js line 1


How to get this working ?

Thanks
Answer posted by Support on Jul 06, 2009 01:58
Result of onBeforeDetele event counted as confirmation signal for deleting, so you need to have


function delete(event_id){
      callAjaxDeleta(event_id);
      return true;  //confirm deleting
}