3 messages in com.googlegroups.google-calendar-help-dataapiHow to add "link" to my event using j...
FromSent OnAttachments
laxman29 Jan 2008 13:15 
Austin (Google)29 Jan 2008 15:24 
laxman30 Jan 2008 09:34 
Subject:How to add "link" to my event using java script api
From:laxman (laxm@gmail.com)
Date:01/29/2008 01:15:58 PM
List:com.googlegroups.google-calendar-help-dataapi

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

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);