My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 345: 'refetchEvents' not working in my 'agendaDay' view?
1 person starred this issue and may be notified of changes. Back to list
Status:  Done
Owner:  ----
Closed:  Mar 2010


Sign in to add a comment
 
Reported by geo...@watts.co.nz, Feb 15, 2010
Adam, great work on fullCalendar, it's a very useful chunk of code! In my
implementation I'm using it with ASP and SQL backend. I have built it so
that if an event drag/resize conflicts with an existing event it throws up
a UI Dialog box with list of alternate times (as html links). Click on one
of those and it updates the SQL via AJAX and executes the following:
$("#calendar").fullCalendar('refetchEvents')

That works great in agendaMonth view, but does nothing in agendaDay view?!

I've had a rummage through the other issues and can't see where it might
have been reported previously with no luck - any ideas what I might be
doing wrong?

I have FF3.5, IE8, jQuery 1.3.2, jQueryUI 1.7.2 and fullCalendar 1.4.4

Tried it with newer jQuery 1.4.1 with no luck?

George

Feb 23, 2010
#1 geo...@watts.co.nz
I've moved to fullCalendar 1.4.5 and tried: 
 1. 'render' instead of 'refetchEvents' - no luck.
 2. using 'lazyFetching: false' - no luck, in fact made it worse, nothing was
displayed in agendaDayView after calling render or refetchEvents...
 3. using 'cacheParam' didn't fix anything, but didn't break anything either.

Everything works perfectly except when trying to reload the events from SQL and
render them in agendaDay view. Is this a limitation of FullCalendar or am I doing
something wrong? Is anyone else able to add/update events from a remote source in
agendaDay view??

George

Feb 26, 2010
Project Member #2 adamrs...@gmail.com
can you look at firebug and see if the actual ajax request is being sent out? look at 
text of its response?
Feb 28, 2010
#3 geo...@watts.co.nz
Wow, I've read about Firebug, but never used it before. It identified that the
'refetchEvents' was sending out the AJAX request but not getting any data back. I
reviewed my backed ASP code and discovered a syntax issue which wasn't obvious across
week/month ranges but returned no events for just a single day. Fixed that and
everything works a treat now!! Thanks Adam for that seed in resolving my problem.
I'll remember to Firebug first, post second in future... apologies if it took you
away from fixing any real issues :-)
Mar 15, 2010
Project Member #4 adamrs...@gmail.com
no problem george, glad you got it to work
Status: Done
Sign in to add a comment

Powered by Google Project Hosting