rem: node.setAttribute("http: node.setAttribute("http: 
context: calendarManager.prototype.addServerDialogResponse = function calMan_addServerDialogResponse( CalendarObject ){   var next = this.nextCalendar();   var name = "calendar"+next;   CalendarObject.active = true;   CalendarObject.remotePath = CalendarObject.remotePath.replace( "webcal:", "http:" );   var node = this.rootContainer.addNode(name);   node.setAttribute("http://home.netscape.com/NC-rdf#active", "true");   node.setAttribute("http://home.netscape.com/NC-rdf#serverNumber", next);   node.setAttribute("http://home.netscape.com/NC-rdf#name", CalendarObject.name);      var profileFile;   if( CalendarObject.path == "" )   {      //they didn't set a path in the box, that's OK, its not required.      profileFile = this.getProfileDirectory();      profileFile.append("Calendar");      profileFile.append("CalendarDataFile"+ next+ ".ics");      CalendarObject.path = profileFile.path;   }      node.setAttribute("http://home.netscape.com/NC-rdf#path", CalendarObject.path);   // CofC save off the color of the new calendar    // Add the default color for when a user does not select a calendar color.    if( CalendarObject.color == '' )    {        node.setAttribute("http://home.netscape.com/NC-rdf#color", "#F9F4FF");    }    else    {        node.setAttribute("http://home.netscape.com/NC-rdf#color", CalendarObject.color);    }      if( CalendarObject.remotePath.indexOf( "http://" ) != -1 ||       CalendarObject.remotePath.indexOf( "https://" ) != -1 ||       CalendarObject.remotePath.indexOf( "ftp://" ) != -1 )   {      profileFile = this.getProfileDirectory();      profileFile.append( "Calendar" );      profileFile.append("RemoteCalendar"+ next+ ".ics");      node.setAttribute("http://home.netscape.com/NC-rdf#remote", "true");            node.setAttribute("http://home.netscape.com/NC-rdf#remotePath", CalendarObject.remotePath);      node.setAttribute("http://home.netscape.com/NC-rdf#publishAutomatically", CalendarObject.publishAutomatically);      node.setAttribute("http://home.netscape.com/NC-rdf#username", CalendarObject.username);      node.setAttribute("http://home.netscape.com/NC-rdf#password", CalendarObject.password);      this.retrieveAndSaveRemoteCalendar( node );            dump( "Remote Calendar Number "+ next+ " Added\n" );   }   else   {      node.setAttribute("http://home.netscape.com/NC-rdf#remote", "false");            dump( "Calendar Number "+CalendarObject.serverNumber+" Added\n" );   }      this.rdf.flush();   // change made by PAB... new calendars don't have their Id field set because   // it does not exist until after the node is created. This causes trouble downstream   // because the calendar coloring code forms the name of the color style from the Id.   // So... set the CalendarObjects Id here   CalendarObject.Id = node.resource.Value;      // call the calendar color update function with the calendar object   // NOTE: this call was moved   calendarColorStyleRuleUpdate( CalendarObject );}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4c45ef82548cb211397be177fd26e5a4234bc45c/calendarManager.js/buggy/calendar/resources/content/calendarManager.js