this code gives me an [object error] in internet explorer - it works
fine in firefox though. Can anyone tell me what I'm doing wrong?
<script>

              // Create the calendar service object
              var calendarService = new
google.gdata.calendar.CalendarService('TimeoutCal');

              // 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/
default/private/full';

              // Create an instance of CalendarEventEntry representing
the new event
              var entry = new google.gdata.calendar.CalendarEventEntry
();



              entry.setTitle(google.gdata.Text.create('Andet'));
//Slut bestemmelse af titel
//Start Kommentering af event

              entry.setContent(google.gdata.Text.create('asdfg'));

//Slut kommentering
//Start tidsbestemmelse

              // Createa 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 startTime = google.gdata.DateTime.fromIso8601
('2008-11-17T14:00:00.000+01:00');
              var endTime = google.gdata.DateTime.fromIso8601
('2008-11-17T14:00:00.000+01:00');
              when.setStartTime(startTime);
              when.setEndTime(endTime);
              // Add the When object to the event
              entry.addTime(when);
//Slut tidsbestemmelse
//Start stedsbestemmelse

              var where = new google.gdata.Where();

             where.setValueString('here');
             entry.addLocation(where);
//Slut stedsbestemmelse
//start tilføjning af deltagere


             var who = new google.gdata.Who();
             who.setEmail('[EMAIL PROTECTED]');
             who.setValueString('Jakob Danelund')
             entry.addParticipant(who);

//Slut tilføjning af deltagere
//tilføj extendedproperty
      var GoogleAktionsId = new google.gdata.ExtendedProperty();
      GoogleAktionsId.setName('aktionsid');
      GoogleAktionsId.setValue('2733');
      entry.addExtendedProperty(GoogleAktionsId);
//slut tilføjning af extendedproperty

              var callback = function(result) {
              window.opener.document.getElementById
('GoogleIframeCalendar').src = window.opener.document.getElementById
('GoogleIframeCalendar').src;
              window.close();
              }

              var handleError = function(error) {
                  document.getElementById("information").innerHTML +=
(error);
              }
              calendarService.insertEntry(feedUri, entry, callback,
    handleError, google.gdata.calendar.CalendarEventEntry);
    </script>

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