You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Sorry for my bad English. I'm writing events via ajax to db, like this: $.ajax({ url: url, data: {start: start, end: end, etap_id: cat_id, project_id: project_id, user_id: user_id}, type: 'POST', success: function(res) { if (res == 1) location.reload(); } });
I want to save updates to db via ajax. How can I do these. I try these:
`$JSEventUpdate = <<<EOF
function(start, end) {
alert(start);
}
EOF; [
'selectable' => true,
'selectHelper' => true,
'droppable' => true,
'editable' => true,
'updateEvent' => new JSExpression($JSEventUpdate),
'allDaySlot' => false,
'hiddenDays' => [0],
'minTime' => '09:30:00',
'maxTime' => '17:30:00',
'defaultView' => 'agendaWeek',
'drop' => new JsExpression($JSDropEvent),
'select' => new JsExpression($JSCode),
'eventClick' => new JsExpression($JSEventClick),
'defaultDate' => date('Y-m-d H:i:s')
],
'events' => $events,
));
?>`
But I can't; Thank you for answer!
The text was updated successfully, but these errors were encountered:
Hey, pls. check the fullcalendar.io docs -> your code for adding it into the yii extension looks ok - if you don't find a solution today, pls. drop another message and I'll send you sample code...
Hi! Sorry for my bad English. I'm writing events via ajax to db, like this:
$.ajax({ url: url, data: {start: start, end: end, etap_id: cat_id, project_id: project_id, user_id: user_id}, type: 'POST', success: function(res) { if (res == 1) location.reload(); } });
I want to save updates to db via ajax. How can I do these. I try these:
`$JSEventUpdate = <<<EOF
function(start, end) {
}
[ 'selectable' => true, 'selectHelper' => true, 'droppable' => true, 'editable' => true, 'updateEvent' => new JSExpression($JSEventUpdate), 'allDaySlot' => false, 'hiddenDays' => [0], 'minTime' => '09:30:00', 'maxTime' => '17:30:00', 'defaultView' => 'agendaWeek', 'drop' => new JsExpression($JSDropEvent), 'select' => new JsExpression($JSCode), 'eventClick' => new JsExpression($JSEventClick), 'defaultDate' => date('Y-m-d H:i:s') ], 'events' => $events, )); ?>`
EOF;
But I can't; Thank you for answer!
The text was updated successfully, but these errors were encountered: