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

how to create simple modal, can i have snippet please

Asked by Sapan Kumar Mohanty
7 years ago.

Instead of extrenal link pull modal.showUrl("room_new.php"); want to display from div in same page so how can i build modal

Comment posted by Sapan Kumar
7 years ago.

wanted display this dialog from same page rather than other file using modal_show(), can i have sample code please

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

You can display custom HTML using DayPilot.Modal.showHtml():

var modal = new DayPilot.Modal();
// ...
modal.showHtml("<div>text</div>");
Comment posted by Sapan Kumar
7 years ago.

working but i could see it's using jquery very old version..

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

DayPilot itself doesn't require jQuery. Some of the tutorials use jQuery to implement some features (such as handling user actions on <select> elements etc.).

But even the tutorials don't require any specific jQuery version - you can upgrade to the latest jQuery version or replace the helper code with pure JavaScript implementation.

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