I have attached a standalone example. The problem that I am having is that when the iframe element is inserted into the DOM, the entire page redirects to the Google Login page. I do not understand why? These are public calendars and should not require the user to be logged in.
I have tried inserting iframe HTML, inserting the iframe DOM element, and even setting the src attribute after the DOM element is inserted. What gives? I am obviously missing something here.. Any ideas?