Hi, this is my code. It works fine for getting data and parsing, but I am unable to get events displayed. Please let me know the possible reason.
I feel that the callback(event) is not working here.
events: function(callback)
{
$.ajax({
type: "POST",
url: "WebService.asmx/hello",
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(data)
{
var evnt = [];
$(data.d).find('event').each(function()
{
evnt.push({
// title: $(this).attr('title'),
// start: $(this).attr('start'),
// end: $(this).attr('end')
title: 'Events1',
start: '2010-04-01',
end: '2010-04-10'
});
});
alert('called end');
callback(evnt);
},
error: OnError
});
}