closing schedule window/popup

Hi,

I’m trying to close automatically a window/popup after the ‘Save’/Cancel buttons where clicked. I use the ‘onEventSave’ and ‘onEventCancel’ and I do get in to the event but I can’t close the current window, I tried top.close(), self.close() and some more JS options but none were successful.

Is there any way I can do this?

Thank you.

Hi,

I do not understand, because the window will close automatically in one of two actions?!?

Please describe in more detail

Regards,
shufro

Hello,

Are you using default lightbox or your own custom form?

Kind regards,
Ilya

The ‘lightbox’ works fine and closes as needed but I need to close everything, the entire browser window/tab, I’m integrating it into a script that needs to make an appointment. Through a URL I open the schedule in a pop-up, create the event and then when saving I want to close the entire pop-up/schedule.

Hello,

Please check the following link: window.close

Kind regards,
Ilya

I already looked into this but it didn’t help, maybe because I added it into an event, since I want the scheduler to close onSave.

I’ll look further. I thought that there might be a way to do it in DHTMLX code.

Thank you.

Hello,

If you have sample available on the internet please attach link.
Closing popup window and lightbox in the onEventSave would not be correct as event is not yet saved.

Kind regards,
Ilya

The work that I do is not available outside.

What event should I use to close the pop-up window after a new event was added?

Hello,

I’ve provided the link with the sample how to open and close pop up window. You can do the same.

Kind regards,
Ilya