Actually here is something I came up with that is taken from the
listEvents function.

function getEvent(eventnum, feedRoot) {
                          var entries = feedRoot.feed.getEntries();
                          /* loop through each event in the feed */
                          var len = entries.length;
                          for (var i = 0; i < len; i++) {
                                var entry = entries[eventnum];
                                var title = entry.getTitle().getText();
                                var startDateTime = null;
                                var startJSDate = null;
                                var times = entry.getTimes();
                                var desc = entry.getContent();
                                if (times.length > 0) {
                                  startDateTime = times[0].getStartTime();
                                  startJSDate = startDateTime.getDate();
                                }
                                var dateString = (startJSDate.getMonth() + 1) + 
"/" +
startJSDate.getDate();
                                if (!startDateTime.isDateOnly()) {
                                  dateString += " " + startJSDate.getHours() + 
":" +
                                          padNumber(startJSDate.getMinutes());
                                }
                          }
                          alert("This entry is " + desc + "");
                        }

It will select the corresponding entry number in the array... however
I don't know how to replicate the feedRoot

On May 27, 3:44 pm, Vince <[EMAIL PROTECTED]> wrote:
> On this page the sample is using the "Google data JavaScript client
> library from the Google Developers Event Calendar."
>
> So now, if we look at the Google Events Calendarhttp://code.google.com/events/
> you will see that it is laid out the same in an unordered list which
> is fine.
>
> The functionality I DO need is when an event is clicked on, instead of
> opening to an external URL like it does in the example I want it to
> drop down a div like on the Developer Events page and show the
> details.
>
> Anyone know how this is done?
>
> Thanks
> Vince
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to