Google Calendar Gadget needs to know which event is currently being looked at
I am programming my first google calendar sidebar gadget right now. When the user is in 开发者_运维技巧Google Calendar, I plan to have them open up an event, and when they are in view/edit page, it will use that event's data to find other similar events.
The problem is, I can't figure out a way to know which event is currently being looked at. Once I can tell that, I don't think I'll have much trouble doing the rest.
So, I am wondering:
- Does the Google Calendar API provide views information for sidebar gadgets? I think the answer is no but I'd like to be wrong.
- Is there any other way I might get this information, like say by looking up info from the page's DOM?
Thanks in advance! I might post this question elsewhere, but I will be sure to post the answer here regardless.
Looks like it's subscribeToEvents that I need. It was right under my nose in the API docs...
精彩评论