For any doubts and question ask to: Nunzio Fiore or Emanuele Crescentini
see the google group associated
First of all the DEMO 1 (month view) | DEMO 2 (week view default) | DEMO 3 (day view default) .
Second step: DOWNLOAD MooGenda
MooGenda is MooTools1.2 based. See the Mootools site to download the recent package.
The idea is to use MooGenda to quickly expose your events from a json request. You can customize your event in week view and in day view.
On startup code reads a json like this (IMPORTANT: read the meaning of each variable to customize your MooGenda):
{
"events": [
{
//day number
"day": 1,
//an id
"elNum": 1,
//a title for the event
"title": "Lesson about Mootools",
//a complete description, it can have also html content
"desc": "In Altedo, at <a href=\"http://www.iprov.com\">IPROV</a>, we have our course. "
//when the event starts
,"timeStart":"8.5",
//how long is the event
"timeLong":"3"
},
....
]
}
A complete JSON is at the demo url: CALENDAR EVENTS' JSON
The request has these POST parameters (for your customization):
When an event is moved, resized or dragged MooGenda launch a request to an url to store the new home's configuration choiced from the user. This service gives a JSON response like that:
{
"result":"ok"
}
or like that:
{
"result":"ko"
}
This is a response caused by these parameters:
To create a MooGenda instance use a minimal code like that:
<div id="moogenda"></div>
<script>
window.addEvent('domready',function(){
var mooGenda = new MooGenda({
id:'thisMonth',
dateObject:new Date(),
where:'moogenda',
header:'MooGenda: my MooTools based Agenda'});
mooGenda.write();
});
</script>
A complete option's list:
To customize event you have to extend MooGenda and override default associated method. For example:
eventDetail: function(ev) {
If you need help in personalization, or you wanna buy a simple or complex customization of these service, write to Nunzio Fiore or Emanuele Crescentini
alert("id:" + ev.retrieve('event_id') + "\n" +
"title:" + ev.retrieve('event_title') +
"\n" + "desc:" + ev.retrieve('event_desc') +
"\n" + "Time long:" + ev.retrieve('event_h') +
"\n" + "Time Start:" + ev.retrieve('event_start') + "\n" +
"Day:" + ev.retrieve('displayNum') + "\n");
},
addEventCal: function(cell) {
alert('This is base action you have to overwrite with your own, to store a new calendar day event on ' + cell.retrieve("dataD"))
},
MooGenda is developped by Nunzio Fiore ( ajax development: MoonKiKi ), Cosmobile ( creative and internet: Cosmobile's web site ), NetComm ( housing, web development: NetComm's web site )
MooGenda has a facebook group where you can post suggestion, question and Link from your web application's where you used MooGenda: MOOGENDA FACEBOOK GROUP
to be defined