I missread your post.
Even though the modified code works with local data, if it is ajax,
you have to pass it in the data callback, with your events.
$calendar.weekCalendar({
data: 'your/data.url.json'
...
and your data to return:
{
options:{
users: [{your user}, {your user}]
},
events:[
{event1},
{event2}
],
freebusys:[
{free-busy-1},
{free-busy-2}
]
}
(as valid json of course, to validate json:
http://www.jsonlint.com)
cheers,
Julien.
On 4 juin, 09:23, Julien MUETTON <
the.moue...@gmail.com> wrote:
> Hi,
>
> you need to provide a real array to users, so try
>
> $calendar.weekCalendar({
> timeslotHeight: 30,
> defaultFreeBusy: { free: true },
> users: getdata(),
> ........
>
> and it should do the trick
>
> Julien
>