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

daypilot all - functions not working

Asked by Dan
1 month 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
1 month ago.

Maybe worth adding I'm using jQuery 3.6.0

Comment posted by Dan Letecky [DayPilot]
1 month 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
1 month 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]
1 month ago.

Great, thanks for posting the solution!

New Reply
This reply is
Your name (optional):