thekingsimo / jquery-week-calendar

Automatically exported from code.google.com/p/jquery-week-calendar
0 stars 0 forks source link

Support the inclusion of additional parameters with JSON requests #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I am using the calendar's built in functionality to retrieve event data via
a $.getJSON call. As part of this call I need to submit more than just the
start and end date parameters to the web service. I have achieved this with
a very simple change which I think would be a good addition to the control:

1) In _loadCalEvents, change

var jsonOptions = {}

to:

var jsonOptions = options.jsonOptions;

2) Add:

jsonOptions : {}

to the option defaults.

It is now possible to pass additional data via the JSON call by simply
populating options.jsonOptions like any other option.

Regards,

Luke

Original issue reported on code.google.com by beno...@gmail.com on 20 Jan 2010 at 11:43