My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1400: Send calendar view type with AJAX call
2 people starred this issue and may be notified of changes. Back to list
Status:  WontFix
Owner:  ----
Closed:  Aug 2013


Sign in to add a comment
 
Reported by tlh...@gmail.com, May 12, 2012
I'm working on a patient scheduling application for my classes at RIT and I'd love if there was a way to send the calendar view type along with an AJAX call.

In my application, data the calendar receives is dependent on the current calendar being viewed.

If a patient is viewing a month calendar it will call a REST service that sends back simple information: whether or not there are appointments available for each day in that month.

If a patient is viewing a week or day calendar they'll get more specific information with available time slots.

I tried using "view.name" but it isn't available until the fullcalendar object is completely initialized, and by that time the AJAX call has already been made.

There's a work around posted on StackOverFlow (http://stackoverflow.com/questions/5645889/fullcalendar-sending-view-via-ajax) but it would be cleaner IMO if you were able to add the view name into the AJAX call.

Not sure how doable this is, but I really appreciate you taking time of out your day to read this.

Also thanks SO much for offering this plugin in for free. It's great!

Cheers.

-Tim


Aug 18, 2013
Project Member #1 adamrs...@gmail.com
you can now send a dynamic "data" parameter for a JSON event source:
http://arshaw.com/fullcalendar/docs/event_data/events_json_feed/

So you could combine this with the getView method, and pass the name along
Status: WontFix
Sign in to add a comment

Powered by Google Project Hosting