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

Example does not work

Related article: HTML5/JavaScript Event Calendar (Open-Source)
Asked by Norbert
2 years ago.


No event is in calendar but DB can record. I don't know why loadEvents do nothing.
I always have a JSON.parse error from the daypilot-all.min.js probably because the variable is null.
Thank you for your help.

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

I recommend checking the HTTP call to the API (backend_events.php) in the browser developer console (Network tab).

Most likely, you will see a DB-related error instead of the expected JSON array with events. The error details should point you in the right direction.

Comment posted by Norbert
1 year ago.

Thank you
I see an error in this tab with an GET call
I'll work on today and give you a feddback.

Comment posted by Norbert
1 year ago.

OK I found!
I had in my database config init an "echo"Connected sucessfully/n". It generated a JSON error.
Thank you very much for your help.

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