My problem was caused by having an onLoad in the body tag of the page (which the page that worked didn't have). I'm not entirely sure how it caused the problem because the getCalendars() function (google.setOnLoadCallback(getCalendars); ) was being invoked but when I removed the onLoad from the body and called the function that was there from the end of getCalendars, the problem went away.
Thanks for looking at this. Can you recommend a learning resource that picks up where the Google API pages leave off? Steve On May 25, 11:08 pm, Steve <[EMAIL PROTECTED]> wrote: > First, I am new to the Google API. I have two domains, each of which > I want to be able to access its Google calendar with the javascript > Google API. Each Google calendar is under a different Google > account. Following the samples I was able to access the calendar from > the first domain. I copied that code into a web page on the second > domain, changed the Google API key to one for the domain and changed > the calendar feed address to the second calendar. When I visit this > page, I get the message 'Permission denied to call method > XMLHttpRequest.open'. I tried using the calendar feed address of the > second calendar in the page on the first domain and that worked. I > mostly use Firefox 2 but I also tried IE7 and that had the same > problem. I've seen the postings about cross domain access but I don't > understand exactly what it means. I'm hoping it doesn't mean you can > only ever visit one page that uses the calendar API to display Google > calendar info. > Any help would be appreciated. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
