Short version:
- ALMOST EVERY version of the API prompts the user "are you sure you
want to add this?".
- WHY: if this didn't exist. then an "evil" site could add arbitrary
calendars / events to an unsuspecting end user without them agreeing ;-
>
- You could use the GData API to get the user's approval the first
time, and then edit the calendar as you see fit. That limits the # of
times that the user gets prompted.

On Aug 14, 12:26 pm, Don Bushell <[email protected]> wrote:
> Hey everyone,
> Hope I'm not double-posting this!  I've scoured the API for hours and
> cannot find an answer to my question there, so that's where you all
> come in!  I want to dynamically add and remove events from my calendar
> without running into confirmation pages or anything like that.
>
> I have two panes on my page: one is my calendar and the other is a
> list of courses.  

Clarification please:
1) What's a "pane"? [an iframe?]
2) What exactly is "my calendar"? [an embeddable calendar with the
course list, but NO user is actually logged in? Something else?]

> I want each course to have it's own "Add to my
> Google Calendar" button, that when clicked, will automatically
> populate my calendar with that course's information (start time, end
> time, course name, etc.).  

There are 2 ways [at least] that you can do this:
1) each "course" is its own calendar. "adding" it would cause the user
to add the course calendar to their "list of calendars"
2) each "course" does NOT have its own calendar. "adding" it would
create events on the user's calendar for each class

I'll assume that you are talking about #1, but I'd like to be sure.

> The problem I'm having is that each time I
> click "Add to my Google Calendar" I get brought to a confirmation
> page.  I want to be able to add/remove courses to/from my gCal on the
> fly.  Any suggestions?
>
> Thanks!
> Don
--~--~---------~--~----~------------~-------~--~----~
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