Hi Austin,

Thanks for your reply. Your tip was working great, thats what I am
looking for.


Thanks

Laxman

On Jan 29, 3:24 pm, "Austin (Google)" <[EMAIL PROTECTED]> wrote:
> Hi,
> When you said "add link" to your event, I take it that you mean adding a
> normal url link within the description of your calendar event.  And this
> link is only visible when it is on the detail page.  So to do this, you just
> have to include the link as it is within your content variable, as
> following:
>
> var content = "my content ....http://www.google.com";;
>
> automatically, the detail page of this event will show the url as a
> hypertext link
>
> Hope it helps,
> Austin
>
> On Jan 29, 2008 1:16 PM, laxman <[EMAIL PROTECTED]> wrote:
>
>
>
> > 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