sunjavagroups / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

iframe, initElement and IE9 bug report on flot 0.7 #617

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

I am drawing a flot chart within a iframe.

It works fine with firefox, chrome but with IE9, I get

"Unable to get value of the property 'initElement'"

Everything is there
http://www.simulcredit.fr/client.html

<iframe src="http://www.simulcredit.fr/widget2.html" frameborder=0 width=810 
height=130 scrolling="no"></iframe>

If I go the url that contains the chart 
http://www.simulcredit.fr/widget2.html
it then works even with IE9

Original issue reported on code.google.com by joursouv...@gmail.com on 23 Oct 2011 at 8:44

GoogleCodeExporter commented 8 years ago
Your link points to a page containing a trojan, so I'm closing this issue 
immediately.

To answer your question, the problem is that the parent page is rendering in 
IE9 quirks mode, which does not support canvas.  Even if the child page renders 
correctly on its own, when you include it in an iframe it uses the rendering 
mode of its parent.

To solve the problem you'll need to adjust the DOCTYPE of the parent page to 
ensure that it renders in standards mode.

Original comment by dnsch...@gmail.com on 1 May 2012 at 8:38