I’m trying to create a JQuery FullCalendar to use a WebService method as a data source.
My method is:
[WebMethod]
public EventData[] ListEvents(int start, int end)
{
}
My javascript is:
$('#calendar').fullCalendar({
events: 'MyWebService.asmx/ListEvents'
}
The URL is being requested is:
http://localhost:49354/MyService.asmx/ListEvents?start=1338073200&end=1341702000&_=1341766605921
Which doesn’t resolve, how can I update this JQuery to call my WebMethod correctly?
I found the solution:
In this example my data my web service returns times as number of seconds since the epoc: