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

daypilot all - functions not working

Asked by Dan
2 years ago.

Just following the javascript/php tutorial. Moving calendar items results in:

Uncaught (in promise) TypeError: this.getYear is not a function

I've tried using the individual minified libraries (-common and -calendar). Same result.

Comment posted by Dan
2 years ago.

Maybe worth adding I'm using jQuery 3.6.0

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

Do you mean this tutorial?
https://code.daypilot.org/17910/html5-event-calendar-open-source

The attached project seems to work fine. Could you please post your code and the error stack trace?

Answer posted by Dan
2 years ago.

I resolved this. I was sending the 'data' object via jQuery $.post and it was failing.

Re-populating the object sent using $.post using:

newStart: args.newStart.toString(),
newEnd: args.newEnd.toString(),

rather than

newStart: args.newStart,
newEnd: args.newEnd,

Solved the issue for me.

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

Great, thanks for posting the solution!

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