rem: this.ensureOnline(); var url = this.getCommandUrl( "createcalendar" ); url += ("&allowdoublebook=" + (bAllowDoubleBooking ? "1" : "0")); url += ("&set_calprops=" + (bSetCalProps ? "1" : "0")); url += ("&subscribe=" + (bAddToSubscribed ? "1" : "0")); url += ("&calid=" + encodeURIComponent(calId)); url += ("&name=" + encodeURIComponent(name));  var xml = this.issueSyncRequest( url + "&fmt-out=text%2Fxml", utf8ToXml ).data; return (this.userId + ":" + calId); 
add: try { var url = this.getCommandUrl( "createcalendar" ); url += ("&allowdoublebook=" + (bAllowDoubleBooking ? "1" : "0")); url += ("&set_calprops=" + (bSetCalProps ? "1" : "0")); url += ("&subscribe=" + (bAddToSubscribed ? "1" : "0")); url += ("&calid=" + encodeURIComponent(calId));  url += ("&name=" + encodeURIComponent(name));  this.issueSyncRequest( url + "&fmt-out=text%2Fxml", stringToXml ); return (this.userId + ":" + calId); } catch (exc) { this.notifyError( exc ); throw exc; } 
context:     createCalendar:    function( calId, name, bAllowDoubleBooking, bSetCalProps, bAddToSubscribed )    {        this.ensureOnline();        var url = this.getCommandUrl( "createcalendar" );        url += ("&allowdoublebook=" + (bAllowDoubleBooking ? "1" : "0"));        url += ("&set_calprops=" + (bSetCalProps ? "1" : "0"));        url += ("&subscribe=" + (bAddToSubscribed ? "1" : "0"));        url += ("&calid=" + encodeURIComponent(calId));        url += ("&name=" + encodeURIComponent(name)); // xxx todo: undocumented!        // xxx todo: what about categories param???        var xml = this.issueSyncRequest(            url + "&fmt-out=text%2Fxml", utf8ToXml ).data;        return (this.userId + ":" + calId);    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/99eaaaada9e6f5f2a2f7fac9237c6e41ecf1eef7/calWcapCalendar.js/buggy/calendar/providers/wcap/calWcapCalendar.js