Hi,

I am trying to add "link" to the new event which i am creating using
the following code.
But I could not add any links and it is not giving any errors.any
thing wrong in my code?
I am new to Calendar API and adding events.

Please help me out.

Thanks

Laxman

var title = 'Stub Hub weekly promotions';
var where = 'San Francisco';
var link='Link';
var summery=' Stub Hub Events';
var content = 'weekly sale for 46ers';
var startTime = '2008-02-20T21:00:00.000Z';
var endTime = '2008-02-21T23:00:00.000Z';
var rel='http://schemas.google.com/gCal/2005/webContent';
var type='image/gif';
hRef = 'http://www.google.com/calendar/images/google-holiday.gif';
opt_title='Link To StubHub Promotions';
var event = new google.gdata.calendar.CalendarEventEntry({
  title: {type: 'text', text: title},
  content: {type: 'text', text: content},
  summery: {type: 'text', text: summery},
  locations: [
    {
      rel: 'g.event',
      label: 'Event location',
      valueString: where
    }],
        link: [
    {
      rel:rel,
      type: type,
          titile: opt_title,
          href: hRef,
      valueString: link
    }],
  times: [
    {
      startTime:
          google.gdata.DateTime.fromIso8601(startTime),
      endTime:
          google.gdata.DateTime.fromIso8601(endTime)
    }]
  }
);
feedRoot.feed.insertEntry(event, handleMyInsertedEntry, handleError);
}
--~--~---------~--~----~------------~-------~--~----~
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