Note that there are some explanatory texts on larger screens.

plurals
  1. POUpdating FullCalendar-asp-net project to the latest 1.6.4 version
    text
    copied!<p>I am trying to update the <a href="https://code.google.com/p/fullcalendar-asp-net/" rel="nofollow">fullcalendar-asp-net</a> project with the latest version of fullcalendar script. That project uses 1.4.7 version of fullcalendar (which is very old) with jquery 1.3.2 (that is very old too). I like to whole functionality of that project so I just want to use it as is by updating it to the 1.6.4 (latest) version of fullcalendar with jquery 1.10.2 (Last version is shipped with that version of jquery).</p> <p>The problem I am having is, that I cannot make the events appear from the handler, when I update the scripts. The only changes I made are changing the scripts at the page header like:</p> <ul> <li>Jquery 1.3.2 to 1.10.2</li> <li>Jquery-UI to 1.10.3</li> <li>FullCalendar 1.4.7 to 1.6.4</li> </ul> <p>All the backend methods are working fine so I can add new events and save them to db and update them with no problems. When I reload the page, they all disappear (meaning they're not loading). That is the js code which should load the calendar on pageload (Unneccessary codes are deleted for simplification).</p> <pre><code>var calendar = $('#calendar').fullCalendar({ events: "JsonResponse.ashx", }) </code></pre> <p>The strange thing is when I copy and paste the json response directly to events, they all appear. Code is like this:</p> <pre><code>var calendar = $('#calendar').fullCalendar({ events: [{ id: '42', title: 'asdf', start: 1378771200, end: 1378944000, allDay: true, description: 'asdfasdf' }, { id: '43', title: 'sadfsdf', start: 1378944000, end: 1379030400, allDay: true, description: 'asdfgadfasdfd' }, { id: '44', title: 'asdf', start: 1379030400, end: 1379030400, allDay: true, description: 'asdfasdf' }] }) </code></pre> <p>I started to think between the versions 1.4.7 and 1.6.4 of fullcalendar, there should be a difference in loading events. When I look at the documentation, I see the exact same thing as I do. Isn't the idea just sending a JSON string to the events? The JSON string which is produced by ashx handler is correct, hence it works when I copy and paste it directly.</p> <p>I am a little bit lost here and wasted enough time searching for relative info and reading the basics. Finally came here hoping someone could point me to the right direciton.</p> <p>Note: I didn't write the ashx codes thinking it's not important since it creates a valid JSON string and it can be found from the <a href="https://code.google.com/p/fullcalendar-asp-net/" rel="nofollow">fullcalendar-asp-net</a> project.</p> <p>Thanks!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload