FullCalendar-BS4-PHP-MySQL-JSON icon indicating copy to clipboard operation
FullCalendar-BS4-PHP-MySQL-JSON copied to clipboard

Version 4 of FullCalander MYSQL

Open pepijndik opened this issue 6 years ago • 5 comments
trafficstars

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

pepijndik avatar Jul 03 '19 14:07 pepijndik

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 avatar Jul 03 '19 20:07 waldronmatt

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 avatar Jul 22 '19 15:07 waldronmatt

I have got it working for version 4Op 22 jul. 2019 17:46 schreef Matthew Waldron [email protected]: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.

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

pepijndik avatar Jul 22 '19 16:07 pepijndik

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();
            }
          });

        }`

pepijndik avatar Jul 22 '19 16:07 pepijndik

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 avatar Jul 22 '19 18:07 waldronmatt