5 messages in com.googlegroups.google-calendar-help-dataapiRe: Update Event Error with html tags| From | Sent On | Attachments |
|---|---|---|
| Jules | 14 May 2008 03:12 | |
| Austin (Google) | 14 May 2008 13:41 | |
| Jules | 15 May 2008 09:45 | |
| Austin (Google) | 16 May 2008 13:15 | |
| Jules | 16 May 2008 18:46 |
| Subject: | Re: Update Event Error with html tags![]() |
|---|---|
| From: | Jules (iuli...@gmail.com) |
| Date: | 05/16/2008 06:46:35 PM |
| List: | com.googlegroups.google-calendar-help-dataapi |
Dear Sir,
Your professional support and quick answers saved a lot of time by pointing in the right development direction.
Thank you, Jules
On May 16, 11:16 pm, "Austin (Google)" <api....@google.com> wrote:
Hi,
I see what you mean now, that updating an existing html format does not retain its original html styling. Yes this is most likely an effect that is produced by the Calendar UI, please submit this issue to the Calendar Help Center -
http://www.google.com/support/calendar/bin/request.py?contact_type=fe...
Thanks, Austin
On Thu, May 15, 2008 at 9:45 AM, Jules <iuli...@gmail.com> wrote:
Dear Sir,
Thank you for the clue. It helps, but it does not solve the hole problem.
Using MyEntry.Content.Type = "html", does not generate an error anymore, but it just eliminates all the html tags, and update the text itself. The entry, even updated, has content.type still "text".
A similar behaviour has the web interface of Google Calendar: 1) Edit the event description, using html tags. Save changes, OK Display html format 2) Edit again the event description, modify something, Save changes. Wrong. All the html format is gone! This could be a general bug of Google Calendar.
This issue is very relevant, because this could bring to Google Calendar interevents linking, using the feeds addresses ... like <a href="http://www.google.com/calendar/event?
eid=Y3VmM3BqYWw3c2U1NnBnNjNpbmpyMTdoZm8gcGhjZzhpamFlb2owMzg0cXNvaHBzZDA0MzhAZw<http://www.google.com/calendar/event?eid=Y3VmM3BqYWw3c2U1NnBnNjNpbmpy...> ">Link to another event</a>
I would appreciate if you could find a workaround, Kind Regards, Jules
On 14 Mai, 23:41, "Austin (Google)" <api....@google.com> wrote:
Hi Jules,
This is because by default the content type is set to be "text" which represents plain text. To set content to contain html tags you have to explicitly set the content type to be of "html", you do that like this -
MyEntry.Content.Type = "html";
Hope it helps, Austin
On Wed, May 14, 2008 at 3:12 AM, Jules <iuli...@gmail.com> wrote:
The problem is that, when trying to update an event content via api google calendar using html tags, every time an error occurs. If you try via classic Google Calendar web interface, you can successfully use html tags.
Code sample:( Visual Basic) Private Sub UpdateWithHtmlTags()
StrQuery = "My tennis club" Dim myQuery As EventQuery = New EventQuery(StrQuery) Dim calFeed As EventFeed = MyService.Query(myQuery) Dim MyEntry As EventEntry
For Each MyEntry In calFeed.Entries MyEntry.Content.Content = "<b>New tennis club description content</b>" MyEntry.Update() Next
End Sub
Thank you for your support in advance, Jules
--~--~---------~--~----~------------~-------~--~----~
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
goog...@googlegroups.com
To unsubscribe from this group, send email to
goog...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---




