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

var modal = new DayPilot.Modal(); JavaScript runtime error: Object doesn't support this action

Asked by Sanjeev
10 years ago.

I am trying to display the modal using the code
function create(start, end, resource) {
var modal = DayPilot.Modal();
modal.closed = function () {
if (this.result == "OK") {
dps.commandCallBack("refresh");
}
dps.clearSelection();
}
modal.showUrl("New.aspx?start=" + start + "&end=" + end + "&resource=" + resource);
}
But I am getting this error 0x800a01bd - JavaScript runtime error: Object doesn't support this action

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

Please check that the modal.js script is included properly.

You can download it here:
http://code.daypilot.org/81367/daypilot-modal

Also, make sure that it is initialized using the new keyword:

var modal = new DayPilot.Modal(); 
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.