Update: Here's what I have now:

function setPublic() {
  calendarService.getAclFeed(EVENT_FEED_URL, publishCalendar,
handleError);
}

function publishCalendar(entryRoot) {
  var entry = new google.gdata.AclEntry();
  var ACL_URL = "http://www.google.com/calendar/feeds/default/acl/full/
default";
  var ar = new google.gdata.AclRole();
  ar.setValue(google.gdata.AclRole.VALUE_READER);
  entry.setRole(ar);
  var as = new google.gdata.AclScope();
  as.setType("default");
  entry.setScope(as);
  calendarService.updateEntry(ACL_URL, entry, handleTest, handleError,
Object);
}

Here's the message I get now:
Illegal value of gAcl:role passed: reader

On Mar 1, 11:27 pm, Terence Kim <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've read a lot of other threads regarding this issue (mostly
> addressed by Austin) and I feel like they're getting me closer and
> closer to the solution.  However, I am not held up in that there are
> no concrete examples of how to do this in Javascript.  Here's what I
> have so far:
>
> function setPublic() {
>   calendarService.getAclFeed(ACL_URL, publishCalendar, handleError);
>
> }
>
> function publishCalendar(entryRoot) {
>   var entry = new google.gdata.AclEntry();
>
>   var ar = new google.gdata.AclRole();
>   ar.setValue("read");
>   entry.setRole(ar);
>
>   var as = new google.gdata.AclScope();
>   as.setValue("default");
>   entry.setScope(as);
>
>   calendarService.updateEntry(ACL_URL, entry, handleTest, handleError,
> Object);
>
> }
>
> I get an error message saying:
> "Unknown visibility found:Acl"
>
> And what I have may not be close to the actual solution.  So in short,
> does anyone know how to set a calendar public using Javascript?
>
> Thanks in advance!
--~--~---------~--~----~------------~-------~--~----~
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