Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Version 4 of FullCalander MYSQL #1

Open
pepijndik opened this issue Jul 3, 2019 · 5 comments
Open

Version 4 of FullCalander MYSQL #1

pepijndik opened this issue Jul 3, 2019 · 5 comments
Labels
future enhancement A major feature or request to be implemented in the future

Comments

@pepijndik
Copy link

Can you help with version 4 of Full Calander Connecting to MYSQL Database

@waldronmatt
Copy link
Owner

Hi Pepijn, unfortunately this repo does not support v.4 due to a number of breaking dependency and API changes. To have a working setup, I recommend following the readme of this repo for MySQL setup with Full Calendar v3.9. https://fullcalendar.io/docs/upgrading-from-v3

@waldronmatt
Copy link
Owner

Hi @pepijndik,

I am reopening this issue because it would be beneficial to have a working version of MYSQL and JSON with FC v4. However, it may take considerable time before such a feature would be implemented.

@waldronmatt waldronmatt reopened this Jul 22, 2019
@waldronmatt waldronmatt added the future enhancement A major feature or request to be implemented in the future label Jul 22, 2019
@pepijndik
Copy link
Author

pepijndik commented Jul 22, 2019 via email

@pepijndik
Copy link
Author

This is what I used for version 4 to send a Ajax call to My PHP

` $('#afspraakinfo').on('click', '#save-event', function(e) {
var title = $('input#title').val();

        if (title) {
          var startdate = dropInfo.date.toISOString().slice(0, 19).replace('T', ' ');
          var endDate = dropInfo.date.toISOString().slice(0, 19).replace('T', ' ');
          var description = $('textarea#info').val();
          var resourceId = dropInfo.resource.id;
          $.ajax({
            type: 'POST',
            url: 'add.php',
            data: 'title=' + title + '&start=' + startdate + '&end=' + endDate + '&description=' + description + '&resourceId=' + resourceId + '&allday=' + statusAllDay + '&rijtijd=' + rijtijd,
            success: function(response) {
              console.log('succes:', title);
              console.log('Begin tijd:', startdate);
              console.log('auto Id:', resourceId);
              console.log('Description:', description);
              console.log('Allday:', statusAllDay);
              $('#afspraakinfo').modal('hide');
              calendar.rerenderEvents();
            }
          });

        }`

@waldronmatt
Copy link
Owner

Thank you for sharing pepijndik I'm glad to hear you got version 4 to work with MYSQL. Are you using Bootstrap do this this?

I will leave this open for now until I create a new repo with FC v.4

waldronmatt pushed a commit that referenced this issue Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
future enhancement A major feature or request to be implemented in the future
Projects
None yet
Development

No branches or pull requests

2 participants