Hi Jaswinder,

Please let us know what error are you getting. Please send in your
stack trace that will help us figuring out what's going wrong.

Thanks,
Dexter

On Jul 17, 1:40 pm, jaswinder singh <[email protected]>
wrote:
> hi all,
> I want to insert an event into the public calendar through the
> consumer gadget deployed in igoogle container ,I am able to get the
> entries in that calendar but when i am trying to make the entries into
> their calendar ,i am facing some problems the error message in not
> specific
> its only showing syntax error, Please help me
>
> My calendar entry code goes here:..........................
>
> var calendarService = new google.gdata.calendar.CalendarService
> ('GoogleInc-jsguide-1.0');
>
> // The default "private/full" feed is used to insert event to the
> // primary calendar of the authenticated user
> var feedUri = 'http://www.google.com/calendar/feeds/
> [email protected]/private/full';
>
> // Create an instance of CalendarEventEntry representing the new event
> var entrycalendar = new google.gdata.calendar.CalendarEventEntry();
>
> // Set the title of the event
> entrycalendar.setTitle(google.gdata.Text.create('JS-Client: insert
> event'));
>
> // Create a When object that will be attached to the event
> var when = new google.gdata.When();
>
> // Set the start and end time of the When object
> var eventStartTime = google.gdata.DateTime.fromIso8601(startDate
> +'T'+startTime+'.000+05:00');
> var eventEndTime = google.gdata.DateTime.fromIso8601(endDate
> +'T'+endTime+'.000+05:00');
> when.setStartTime(eventStartTime);
> when.setEndTime(eventEndTime);
>
> // Add the When object to the event
> entrycalendar.addTime(when);
> alert('submit the request');
> // Submit the request using the calendar service object
> calendarService.insertEntry(feedUri, entrycalendar, calendarcallback,
>     handleError, google.gdata.calendar.CalendarEventEntry);
>
> I am getting error in insertEntry method
> Please help me............
>
> Thanks,
> Jaswinder Singh

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