I'm using FullCalendar
and I want to save all events
on form.submit()
in MySQL database in a blob
field.
I thought I could convert it to JSON and then set it to a hidden
input, then save it with PHP
. But I get the JSON error for Converting circular structure to JSON
.
Here is my code and the output.
$("input[type='submit']").click(function(e) {
var events = $('#calendar-cabinet').fullCalendar( 'clientEvents');
console.log(events);
});