修改弹出iframegoogle日历
Modify pop up iframe google calendar
我的网页上有一个 iframe 来显示 google 日历。我正在使用 django,它正确地向我显示了我创建的事件。
我已经找了好几天了,但找不到修改 iframe 在您 select 事件时生成的弹出窗口的方法。
让我们看看是否有人可以给我一些关于如何做或在哪里看的想法。
一句问候。
这是我为 Google:
生成的代码 iframe
<iframe src="https://calendar.google.com/calendar/embed?height=700&wkst=1&bgcolor=%23ffffff&ctz=Europe%2FMadrid&src=amZhbHZhcmV6MjMyQGdtYWlsLmNvbQ&color=%23039BE5&title=Web%20Asociacion&showDate=1&showPrint=0&showTabs=0&showCalendars=0&showTz=0" style="border:solid 1px #777" width="900" height="700" frameborder="0" scrolling="no"></iframe>
由于 CORS 政策,您不能
如果您的网站上有 iframe,除非该 iframe 是从相同来源生成的,否则您将无法访问它。
如果确实来自同一来源,您可以执行以下操作:
document.getElementById('myframe').contentWindow.document
虽然您将 Google 日历用作 iframe,但您无法访问它,因为它来自 Google 的服务器。
我的网页上有一个 iframe 来显示 google 日历。我正在使用 django,它正确地向我显示了我创建的事件。 我已经找了好几天了,但找不到修改 iframe 在您 select 事件时生成的弹出窗口的方法。
让我们看看是否有人可以给我一些关于如何做或在哪里看的想法。
一句问候。
这是我为 Google:
生成的代码 iframe<iframe src="https://calendar.google.com/calendar/embed?height=700&wkst=1&bgcolor=%23ffffff&ctz=Europe%2FMadrid&src=amZhbHZhcmV6MjMyQGdtYWlsLmNvbQ&color=%23039BE5&title=Web%20Asociacion&showDate=1&showPrint=0&showTabs=0&showCalendars=0&showTz=0" style="border:solid 1px #777" width="900" height="700" frameborder="0" scrolling="no"></iframe>
由于 CORS 政策,您不能
如果您的网站上有 iframe,除非该 iframe 是从相同来源生成的,否则您将无法访问它。
如果确实来自同一来源,您可以执行以下操作:
document.getElementById('myframe').contentWindow.document
虽然您将 Google 日历用作 iframe,但您无法访问它,因为它来自 Google 的服务器。