Please see http://drupal.org/node/43272 for a description of the problem and solution. All I've done is hacked the same solution into the calendar module.

Attached you will find a tar ball with a version of the javascript code for the calendar module and a patch to be run against the calendar HEAD May 23, 2007

It should unpack straight into your calendar module directory, and then you can run patch -p2 < calendar.patch

Cheers

Mark.

CommentFileSizeAuthor
calendar-ajax-patch.tar_.gz1.86 KBmarkfoodyburton
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

KarenS’s picture

Status: Needs review » Needs work

Wouldn't mind adding this functionality in, but there have been LOTS of changes to this module so I'm sure whatever you did won't apply any more. Plus you aren't really supposed to upload zipped files to this site. If you, or anyone else, is interested in rolling another patch to do this as a regular patch file, I'd be glad to look at it.

moshe weitzman’s picture

An excellent example of an ajax calendar within a block is at http://sites.google.com/a/googleuniversity.org/ski-club/Home. Hope someone can provide a patch for this module that behaves similarly when changing month/week/day.

KarenS’s picture

Status: Needs work » Fixed

One thing needed for this to work was to re-implement the 'mini' url, which I had taken out by request but later realized was needed for both this and getting the calendar block working in Panels. Once I added that back in, I was able to get this working in the 5.2 version of Calendar. I also added it to the D6 version code in HEAD, but I imagine it will need some tweaking to work right in D6.

It's only taken, oh, 10 months or so to respond to this. Sorry for the delay, but thanks for the patch.

@Moshe, this gets the navigation of the mini calendar in a block working right. There is no week, year, or day option there, so you may be looking for something more and you are free to open another issue for that.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

EgonO’s picture

Version: 7.x-1.x-dev » 5.x-2.3

Is this already in calendar 5.x-2.3? Can't find it...

EgonO’s picture

Status: Closed (fixed) » Active
Alex72RM’s picture

It would be nice if a patch was produced for the latest version of calendar (5.x branch).

Alessandro

anthrocreative’s picture

Does this work for D6? The feature is there, and I've been attempting to get Calendar to do something with the "Use AJAX" setting. I'm a little fuzzy on it because it is there, and in the Views preview the calendar is always AJAXified (maybe Views is doing this automatically?) but when I actually view the page or the block it's never AJAXified, seemingly regardless of what view option I turn on AJAX for (calendar page, block view, month view, default, etc).

If it doesn't work, I'd be happy to attempt a patch, possibly based on the one above. But if it's supposed to work and I'm doing something wrong, then I'd love to know that instead.

Does anyone have pointers on how it can be made to work? Or an idea of the current state of AJAXiness in the module?

Thanks!

anthrocreative’s picture

Version: 5.x-2.3 » 6.x-2.0-rc4

Updating to match the version I'm using.

dixon_’s picture

Status: Active » Closed (duplicate)

Cleaning up the issue queue...

See this issue instead #339279: [calandar] AJAX navigation in month view