question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v4 events doesn`t work

See original GitHub issue

I have a little weird with an events: [ { } ] when i try to use fullcalendar v4, events by ajax are not displayed. Look at my examples please: in this case, its okey: eventSources: [ { url: ‘/calendar/load’, method: ‘POST’, } ], -----------------------------------------------------// in this case, doesnt work: events: [ { url: '/calendar/load', method: 'POST', } ], i am confused! Check this out please

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
acerixcommented, Apr 11, 2019

Do you mean you don’t see any events in my example?

Your example is using the events setting which should just be a string (url) but you have an event source object which only works in the eventSources setting.

The events setting does not have any way to make it a “POST” instead of “GET” so if you need it to be POST you could use eventSources (when it’s fixed) or for now using a callback function:

https://fullcalendar.io/docs/events-function

1reaction
acerixcommented, Apr 10, 2019

It looks like the issue is that the JSON needs to be an array of events but yours is just one event so it needs to be wrapped in an array like this example:

https://codepen.io/acerix/pen/EJWqQv?editors=0010

You do need eventSources to change it to a POST request, but there is actually an open issue for that since it’s not working:

https://github.com/fullcalendar/fullcalendar-scheduler/issues/521 ↑ Could you please visit the link, give a 👍 to vote (?), press the 🔈Subscribe button to receive updates?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Solved: Create Event (v4) doesn't work properly
Solved: Hello, I've built a flow, where you can request vacation from your CEO. The flow works like this: You enter your name,...
Read more >
FullCalendar-v4 allDay events not rendering - Stack Overflow
I have managed to get my recurring events to show up on the calendar, but my single allDay events will not render and...
Read more >
[GA4] Monitor events in DebugView - Analytics Help
Monitor events from a website or mobile app as the events are triggeredThe DebugView report shows you data (from events, event parameters, ...
Read more >
Events | Node.js v19.3.0 Documentation
This method is intentionally generic and works with the web platform EventTarget interface, which has no special 'error' event semantics and does not...
Read more >
UI Events - W3C
Publication as a Working Draft does not imply endorsement by W3C and its Members. ... 6.3.4 Default actions and cancelable keyboard events.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found