sunjavagroups / flot

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

IE Javascript errors #535

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Webpage error details

Message: Unable to get value of the property 'initElement': object is null or 
undefined
Line: 698
Char: 17
Code: 0
URI: http://www.calconsystems.com/ebda/script/flot/jquery.flot.js

Original issue reported on code.google.com by bmmcc...@gmail.com on 14 May 2011 at 12:05

GoogleCodeExporter commented 8 years ago
Issue is with interactive ledgend and time formatted X-axis

Original comment by bmmcc...@gmail.com on 14 May 2011 at 12:06

GoogleCodeExporter commented 8 years ago
It sounds like you forgot to include excanvas? If you had read the source code 
at the line number, there's actually a comment with "// excanvas hack" just 
above it. :)

I suggest you try the mailing list for this kind of enquiries, the issue 
tracker is for tracking bugs that are known to be in Flot.

Original comment by olau%iol...@gtempaccount.com on 16 May 2011 at 6:09

GoogleCodeExporter commented 8 years ago
I am having the same problem.  The chart simply does not appear in IE9 but it 
does in FF and Chrome.
I have:
* downloaded the latest version (0.7)
* included the excanvas
* completely removed excanvas
* ran IE8 compatible mode (excanvas script gets loaded)

In spite of all of this I still get the same error.  The canvas does get added 
to the placeholder but then it breaks.  When I use flot in a single page (demo) 
site it works just fine but it breaks when it's part of my other solution where 
it's ran on a partial page.

Original comment by krapp...@gmail.com on 18 Jun 2011 at 1:24

GoogleCodeExporter commented 8 years ago
krappies: Do you get the exact same error message? If not, I don't think it's 
the same error. With the symptoms you describe it sounds like you got an IE bug 
somewhere - the most common one is a trailing extraneous comma in array or 
object definitions, e.g. { hello: 1, } which should have been { hello: 1 }. I 
recommend you try the forum if you need more help.

Original comment by olau%iol...@gtempaccount.com on 21 Jun 2011 at 4:50

GoogleCodeExporter commented 8 years ago
I Found the problem on the excanvas.js script link.
The example start with
<!--[if lt IE 9]>.....
It should be
<!--[if lte IE 9]>....

The variable lt was spelled wrong in the example page of the charts.
the problem is under:/docs/files/usage-txt.html .. 

Original comment by florprin on 6 Feb 2012 at 7:11

GoogleCodeExporter commented 8 years ago
The problem was that the if condition to include the excanvas.js was wrong.

The if condition should look like this: <!--[if gte IE 9]>.....
Example:
<!--[if gte IE 9]><script language="javascript" type="text/javascript" 
src="jquery/excanvas.js"></script><![endif]-->

The only reason lte worked is because it meens less or equal IE 9
But the excanvas work only from IE 9 and upwards. 
Thus the operator must be gte which means greater and equal IE 9

Original comment by florprin on 6 Feb 2012 at 7:28

GoogleCodeExporter commented 8 years ago

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