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

daypilot all - functions not working

Asked by Dan
5 months 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
5 months ago.

Maybe worth adding I'm using jQuery 3.6.0

Comment posted by Dan Letecky [DayPilot]
5 months ago.

Do you mean this tutorial?

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

Answer posted by Dan
5 months 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]
5 months ago.

Great, thanks for posting the solution!

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