How to get a list of events currently shown on calendar with start/end times?

120 views
Skip to first unread message

chirag...@contextmediainc.com

unread,
Feb 9, 2013, 10:14:04 AM2/9/13
to jquery-wee...@googlegroups.com
Hello, I want to post all the calendar events to the server after the user is done adding/moving/deleting them. That means I will need a list of all the events currently shown on the calendar with start/end days+times (something similar to 

jquery-week-calendar/jquery.weekcalendar.js#411). Any help would be appreciated, see below on my attempts to get the data.

Thanks, Chirag

I tried $("#calendar").find('.wc-cal-event') but it doesn't include the days and times as shown here:

<div class="wc-cal-event ui-corner-all ui-resizable ui-draggable" style="line-height: 15px; font-size: 13px; top: 480px; height: 539px; display: block;"><div class="wc-time ui-corner-top">08:00 am to 04:59 pm<div class="wc-cal-event-delete ui-icon ui-icon-close"></div></div><div class="wc-title">Open hours</div><div class="ui-resizable-handle ui-resizable-s">=</div></div>

Also  $("#calendar").data().events returns the handlers only

click
[Object { type=
"click"
, guid=
2
, handler=function(), more...}]
mouseout
[Object { type=
"mouseout"
, guid=
4
, handler=function(), more...}]
mouseover
[Object { type=
"mouseover"
, guid=
3
, handler=function(), more...}]
remove
[Object { namespace=
"weekCalendar"
, type=
"remove
, guid=
1
}]

Reply all
Reply to author
Forward
0 new messages