views:

94

answers:

0

First great calendar! It's going to save me a lot of time and headaches.

I have a couple questions I am populating my calendar using AJAX- and it's working fine.. MySQL gets queried sends back nice JSON-- and et voila-- populates my calendar.

The events on my calendar are events logged in by different users (all authentication and assorted other SSO id of users is done through LDAP).

I am looking to do the following two things

I want a user to be able to click on a day-- and get an agenda (in a separate window) of that particular day and all the events that go along with it--- I can form the query just fine on MySQL-- but I'm just not sure how to go about this--I thought about using rerender instead of doing a window.open -- The event- dayclick I can handle fine--- but I don't understand how to do the following Once the new window opens... I need the day agenda to load with the events for that day. I'm certain to use AJAX but I'm dumbfounded as to how to send the variables (start,end) from the originating calendar to the new calendar.

I am also trying to do the following -- A select menu populated with my users that onChange will rerender the map with only that users events. I've got my select menu and OnChange workin' relatively fine-- just made my own function and stuck a fullcalendar rerender in that function-- call it-- spank it... and it works... I can pass my users id-- but not sure how to send it to fullcalendar-- Basically-- how can I send my users ID to my query. My understanding is that fullcalendar sends some basic ones like start,end, title,url, and id-- do I need to go into the source code and add another?-- or am I so tired that I'm overlooking something. I'm using the most basic fullcalendar ajax... Do I have to change my approach?

$('#calendar').fullCalendar('renderEvents',{

        editable: true,


        events: "events.php",
                   timeFormat: 'h(:mm)',
        loading: 
        function(bool) {

            if (bool) $('#loading').show();
            else $('#loading').hide();

        }


    })

    }