Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ajax to updateEvent #88

Open
fnematov opened this issue Aug 24, 2017 · 1 comment
Open

add ajax to updateEvent #88

fnematov opened this issue Aug 24, 2017 · 1 comment
Assignees
Labels

Comments

@fnematov
Copy link

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!

@philippfrenzel
Copy link
Owner

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants