javascriptfunctions for save, cancel, delet in own dialog

I would like to run my own event dialog (actually a JSF AJX-dialog) which i open instead of the default dialog:
scheduler.attachEvent(“onBeforeLightbox”, function(event_id){
eventdlg.show(); //javascript accessor for JSF-Primefaces dialog
});

This works fine. But when I now click save, cancel or delete I have no idea which javascript Function i should call so that the scheduler knows about my action.
Can somebody provide me more informations about this?
Alternatively I would have to make a full reload, which is not really nice.

Thanks for your support.

PS: default dialog is for us not a option, because we have to load some stuff with ajax depending on user input in form (e.g. autocomplete from solr, …)

Hello,

Be sure to check samples\02_customization\16_custom_form.html sample.

Best regards,
Ilya

Thanks, haven’t seen that example. Works nice

documentation for other users:

if you want to delete the event (e.g. from a button in the lightbox) then the following code removes the event:

function delete_event() {
scheduler.deleteEvent(scheduler.getState().lightbox_id, true);
scheduler.endLightbox(false, document.getElementById(“my_form”));
}

I believe it should be following:

function delete_event() { var event_id = scheduler.getState().lightbox_id; scheduler.endLightbox(false, html("my_form")); scheduler.deleteEvent(event_id); }
Best regards,
Ilya