search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Create event in Scheduler (javascript)

Asked by Sasha
8 years ago.

Hi, guys!
How create event in JavaScript Scheduler through DayPilot.Modal Dialog.
There is not enough information http://code.daypilot.org/81367/daypilot-modal.
Thanks.

Answer posted by Dan Letecky [DayPilot]
8 years ago.

Take a look at this tutorial:

http://code.daypilot.org/72248/html5-scheduler-and-modal-dialog-jquery

It shows how to use the modal dialog to add events to the Scheduler.

Comment posted by Anonymous
8 years ago.

Thanks Dan, but i don't want used php and other server script.
How can use modal.showHtml instead of modal.showUrl ?

Comment posted by Dan Letecky [DayPilot]
8 years ago.

Don't use showHtml, it will only force you to pass the HTML as string.

You can use a standalone HTML page and pass the form data back to the main page (DayPilot.Modal.onClosed event) using DayPilot.Modal.Close(data). See the tutorial, it passes the AJAX callback result that way.

Comment posted by Anonymous
8 years ago.

Yes it is possible and to do so! However, I can do the single page using the
var modal = new DayPilot.Modal();
modal.showHtml("<h1>Hello</h1>");

Comment posted by Dan Letecky [DayPilot]
8 years ago.

Yes, it is possible - but less comfortable, IMO.

Comment posted by Anonymous
8 years ago.

Excellent, if it's possible please show sample!

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.