开发者

Firefox 4 iframe issues

I'm having some weird iframe problems with firefox. I'm using 4.0.1.

I'm embedding a gcal. Here's the code

<iframe src="https://www.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=AGENDA&height=400&wkst=1&bgcolor=%23FFFFFF&src=oliversong%40comcast.net&color=%23182C57&ctz=Americ开发者_JAVA百科a%2FNew_York" style=" border-width:0 " width="500" height="400" frameborder="0" scrolling="no"></iframe>

And this gcal works perfectly in chrome and opera, just doesn't display at all in firefox. The html isn't called at all, and it just displays an empty iframe with empty and elements.

Funny thing is if I put two of the same iframe consecutively, the second iframe will appear correctly.

I tried doing

<iframe style="display:none"></iframe>
<iframe src="https://www.google.com/calendar/embed?showTitle=0&showNav=0&showDate=0&showPrint=0&showTabs=0&showCalendars=0&showTz=0&mode=AGENDA&height=400&wkst=1&bgcolor=%23FFFFFF&src=oliversong%40comcast.net&color=%23182C57&ctz=America%2FNew_York" style=" border-width:0 " width="500" height="400" frameborder="0" scrolling="no"></iframe>

and to my utter suprise this does what I want it to.

This is super juke-y though and I don't want to leave it at that.

WHY DOESN'T IFRAME WORK IN FIREFOX?

//edit

Another thing: the iframe appears correctly on the google page, where they provide you with the code to embed.

That leads me to believe that my own site is the problem, but I have no idea why that would be the case, because I have no css or javascript targeting iframes or the div containing it. It also doesn't explain why it only happens in firefox. I also tried flushing the cache and clearing cookies and everything.


You need to escape your ampersands (&amp;). Leave them unescaped could mean the URL is being misread.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜