Page 1 of 1

Calendar module capabilities

Posted: Thu Nov 29, 2007 5:17 am
by dlpirl
I can't tell from the calendar module help if it is possible to have event info appear on mouseover as I can with 'Easy PHP Calendar 6' (See a site we designed with that calendar at http://www.lighthousebenicia.org for an example.) Am I expecting too much from the CMSMS Calendar module?

--Donald

Re: Calendar module capabilities

Posted: Thu Nov 29, 2007 8:24 am
by cyberman
Hi Don,

think it should possible. You have "only" to ajaxify the calendar templates.

Re: Calendar module capabilities

Posted: Thu Nov 29, 2007 4:23 pm
by dlpirl
Ah, here's my opportunity to get into ajax :). Are there any CMSMS docs to help me with 'ajaxification'? ;)

--Donald

Re: Calendar module capabilities

Posted: Thu Nov 29, 2007 6:34 pm
by calguy1000
well it's not that hard..... xmlhttp is quite simple with cms..... you just have to create the url.

the url would be like:
http://www.mysite.com/index.php?mact=Ca ... am2=value2

That will return you just the results of that one module action, and then you can do whatever you want with that output in javascript.

I would suggest you start with creating a funky detail template that just returns the details of what you want to throw in the javascript tooltip/popup thingy....  and test it by using a made up url that matches the example given above directly in your browser.  If that works, then go ahead with the javascript stuff.

The one issue you will have, is getting the eventid into a javascript variable that you can later use to build the url you need.

This can be done by putting some carefully crafted javascript into the summary template you created above.... using {literal} and {literal} tags to isolate the javascript from the smarty code.

I've done similar things for the FLVPlayer module.

Re: Calendar module capabilities

Posted: Thu Nov 29, 2007 9:01 pm
by cyberman
Think ajaxification like I mean can be done by

http://bassistance.de/jquery-plugins/jq ... n-tooltip/

Re: Calendar module capabilities

Posted: Thu Nov 29, 2007 10:03 pm
by dlpirl
oooo cool I like it and will definitely look into using this approach.  Thanks!