-\r
- try {\r
- notificationRequest1 = calendarService.IDataSource.RequestNotification(criteria, callback);\r
- if (notificationRequest1.ErrorCode)\r
- error('requestNotification failed with error code ' + notificationRequest1.ErrorCode);\r
- } catch (e) {\r
- error("requestNotification: " + e + ', line ' + e.line);\r
+ criteria.Filter = new Object();\r
+ for(var i=0; i < calendarList.length; i++) {\r
+ criteria.Filter.CalendarName = calendarList[i];\r
+ try {\r
+ var notificationRequest = calendarService.IDataSource.RequestNotification(criteria, callback);\r
+ if (notificationRequest.ErrorCode)\r
+ error('requestNotification failed with error code ' + notificationRequest.ErrorCode);\r
+ notificationRequests.push(notificationRequest);\r
+ } catch (e) {\r
+ error("requestNotification: " + e + ', line ' + e.line);\r
+ }\r