Archive

Posts Tagged ‘google calendar’

google calendar service and safari

October 22nd, 2008

 Fixing the “Unsupported Browser. Continue at your own risk” Error from Google Calendar Javascript API, when using Safari. First of all… why are they using alert with a service? And worse why are they using an alert in a method with no error handler? Anyways, Javascript is a nice language so we can silence google using a little script like the one below:

 var falert = window.alert;
 window.alert = function() { /* silence google */ };
 var calService = new google.gdata.calendar.CalendarService("wpng-calendar-plugin-1");
 window.alert = falert;

Software , , ,