anirudhb029 / flot

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

window.G_vmlCanvasManager is null or not an Object #116

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
     I am Using Flot 0.5 and i have downloaded relevent Js for that But i 
am getting an Error in IE 7  
as " window.G_vmlCanvasManager is null or not an Object "

Please provide any pointer in this regard 

Its an Urgent Issue .

Regards ,
Shahid.

Original issue reported on code.google.com by shaikhsh...@gmail.com on 17 Feb 2009 at 6:45

GoogleCodeExporter commented 9 years ago
You need to include the excanvas script before Flot. It contains compatibility 
code
to make IE work.

Original comment by olau%iol...@gtempaccount.com on 17 Feb 2009 at 10:34

GoogleCodeExporter commented 9 years ago
This is documented in the examples and the README. I'm closing this bug now as I
don't think I can do much more.

Original comment by olau%iol...@gtempaccount.com on 27 Feb 2009 at 7:40

GoogleCodeExporter commented 9 years ago
I just had the same problem, it turned out i didn't include the excanvas script 
correctly (wrong dir to file). Try adding 'alert("Test")' in the top of the 
excanvas 
script, if it is loaded correctly you should get a pop saying "Test". 
I don't hope this message is inappropriate for a bug board, I just thought i 
might help 
others in the same situation.

Original comment by zpon...@gmail.com on 8 Jul 2009 at 10:19

GoogleCodeExporter commented 9 years ago
I had this error message when loading my Google Gadget using IE.  Yes, it has
something to do with problem loading excanvas.js file.  My original code was:

<Content type="html"><![CDATA[
<!--[if IE]><script type="text/javascript" 
src="excanvas.js"></script><![endif]-->
<script src="http://www.google.com/jsapi" type="text/javascript"></script>

As it turns out, there need to be something between <![CDATA[ and the 
conditional
comment <!--[if IE]>... even if it is just a <p> or another <script> line.

So I changed my code to:

<Content type="html"><![CDATA[
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<!--[if IE]><script type="text/javascript" 
src="excanvas.js"></script><![endif]-->

It is working now.

Original comment by lo.cori...@gmail.com on 7 Dec 2009 at 10:55

GoogleCodeExporter commented 9 years ago
It is still reproducible for me.

README.TXT mentions 
  <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.pack.js"></script><![endif]-->

but there is no excanvas.pack.js, 
but there is excanvas.js and min version

Original comment by igor.v.b...@gmail.com on 10 Feb 2011 at 11:17

GoogleCodeExporter commented 9 years ago
Igor, the README wasn't updated when excanvas.pack.js was renamed to 
excanvas.min.js. That error was fixed some time ago. Just use excanvas.min.js 
as the examples are doing. :)

It was called pack because I used to use the whacky packer until finding out it 
was actually much faster to minify and turn on gzip compression (the jQuery 
maintainer blogged about this).

Original comment by olau%iol...@gtempaccount.com on 11 Feb 2011 at 6:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How do I handle IE < 9 if I do not want (or can not) include excanvas?

I'd like flot to be able to "degrade" gracefully.

Can I test for compatibility?

Original comment by umts...@googlemail.com on 21 Mar 2012 at 11:34

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:39

GoogleCodeExporter commented 9 years ago
I still have problem with flot compatibility to IE6/ IE7. As suggested in 
README, the "excanvas.min.js" file was included. But still, there's a pop-up 
warning "'xx' is null or not an object". It's not a major problem though, I 
just am curious about how it comes such warning? Any suggestions? Thanks in 
advance

Original comment by ai.lei...@gmail.com on 22 Aug 2012 at 6:42

GoogleCodeExporter commented 9 years ago
after solving the first problem, i also had the "'xx' is null or not an object" 
- problem. 
There was a comma too much in the "$.plot(...)"-thingy. Deleted it and now 
everything works fine. Thanks

Original comment by peter.lu...@googlemail.com on 8 Oct 2012 at 10:48

GoogleCodeExporter commented 9 years ago
You need to include the excanvas script before Flot. It contains compatibility 
code
to make IE work.(GREAT !!!! It works.....)

Original comment by gmw.ta...@gmail.com on 17 Aug 2013 at 6:41

GoogleCodeExporter commented 9 years ago
You need to include the excanvas script before Flot. It contains compatibility 
code
to make IE work.(NICE POST)

Original comment by gmw.ta...@gmail.com on 17 Aug 2013 at 6:42

GoogleCodeExporter commented 9 years ago
I still have the first problem but in my case it window.G_vmlCanvasManager is 
UNDEFINED. The excanvas.js is executed at start (I've checked this by 
debugging). I dont use any condition anymore...
<script src="<%= request.getContextPath() %>/js/jqpot/excanvas.js" 
type="text/javascript" charset="utf-8"></script>

Original comment by DavidSil...@gmail.com on 1 Nov 2013 at 12:35