TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
G Y
1.5k
229
43.9k
Java Script Full Calendar Events Count
Nov 29 2017 3:11 AM
Can anyone please provide me the support to display the number of Events per day using JavaScriptFullCalendar (https://fullcalendar.io/)
<div
class
=
"row fif-padding"
>
<div
class
=
"calendar-wrap"
>
<div id=
'calendar'
></div>
</div>
</div>
<script>
$(document).ready(
function
() {
debugger
;
var
events = [];
debugger
;
$.ajax({
type:
"GET"
,
url: $(
"#hdnAppPath"
).val()+
"/MobileHome/CalendarMarkUp"
,
success:
function
(eventdata) {
$.each(eventdata,
function
(i, v) {
events.push({
title: v.Subject,
start: moment(v.StartTime),
end: moment(v.EndTime),
id:v.Id
});
});
GenerateCalendar(events);
},
error:
function
(error) {
alert(
'failed'
);
}
});
function
GenerateCalendar(events) {
debugger
;
$(
'#calendar'
).fullCalendar(
'destroy'
);
$(
'#calendar'
).fullCalendar({
header: {
left:
'prev'
,
center:
'title'
,
right:
'next'
},
})
}
});
</script>
Reply
Answers (
1
)
Cookie in Java Script
call javascript function using submit button