Hi all,
I'm trying to browse users public Google calendar entreis from
Greasemonkey. Following Googles docs, I load the JS from
http://www.google.com/jsapi.
I did this by injecting the following into my userscript:
var script = document.createElement('script');
script.src = 'http://www.google.com/jsapi';
document.getElementsByTagName('head')[0].appendChild(script);
// Check if jQuery's loaded
function GoogleWait() {
if(typeof unsafeWindow.google == 'undefined')
{ window.setTimeout(GoogleWait,500); }
else { google = unsafeWindow.google; itsFine(); }
}
GoogleWait();
function itsFine() {
google.load("gdata", "1");
/*
* Retrieve events with a date query
*/
// Create the calendar service object
var calendarService = new
google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0');
...
}
Problem is that I get the following message:
google.gdata is undefined, source of error somewhere within
Greasemonkey JS.
According to FireBugs DOM view everything seems to be fine, the
google.gdata hierarchy is ok.
Any help greatly appreciated!
Best regards,
Kevin
--
You received this message because you are subscribed to the Google Groups
"greasemonkey-users" 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/greasemonkey-users?hl=en.