On Feb 5, 5:32 pm, "[email protected]" <[email protected]>
wrote:
> I'm using an Embedded Calendar, and the javascript API to create new
> events.  There doesn't seem to be a way to delete events from the
> embedded calender, so I was trying to find a way to post HTML into the
> description, or some sort of delete icon.  The URL of that would be
> something like javascript:deleteEvent('identifier') which would call
> that method on my page.
>
> I can't for the life of me figure out how to post HTML into the
> calendar description, or an icon with something like this:
>
>         var icon  = new com.google.gdata.data.calendar.WebContent();
>         icon.setTitle("DeleteEvent");
>         icon.setIcon("http://www.mydomain.com/images/delete.gif";);
>         icon.setUrl("javascript:whatever()");
>         icon.setHeight("200");
>         icon.setWidth("200");
>         var calLink = new google.gdata.calendar.CalendarLink();
>         calLink.create(icon);
>         entry.setWebContentLink(calLink);
>
> Any help would be appreciated.  Main goal here is just to be able to
> delete events from that embedable html iframe calendar.
>
> Thank you.

This falls outside the normal use case for embedded calendars, so I
can only provide limited assistance here.

What problems in particular are you having with the above code? In
particular, I should note that web content events only work for all
day events.

You may want to just write your own calendar interface that relies on
the Calendar Data API, rather than using the embedded calendar. This
would give you much more flexibility. CalVis might be a good starting
point for this:
http://code.google.com/apis/calendar/articles/calvis.html

Also, the Calendar JavaScript API should allow you to delete events,
provided that you're authenticated. For an example, go here and click
on the "Delete an event" link:

http://code.google.com/apis/calendar/docs/1.0/developers_guide_js.html

--
Trevor Johns
--~--~---------~--~----~------------~-------~--~----~
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