sunjavagroups / flot

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

flot 0.7 and IE9 (version 9.0.8112.16421) #586

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I've some problems with flot 0.7 and IE9 (version 9.0.8112.16421); 
I've already appliend your suggestion, i.e. I've used conditional comment:
<!--[if lte IE 8]><script language="javascript" type="text/javascript" 
src="excanvas.min.js"></script><![endif]-->

My problems are the same I've noticed on your site; in details:

I’m displaying the basic flot on your site 
(http://people.iola.dk/olau/flot/examples/basic.html) 

The browser is, as I said, IE9
I’ve chosen to use:
• Browse Mode: IE9 (or IE8 or IE7)
• Document Mode: IE9 standards
ALL is OK (please see the attached document, image 1)

If I choose to use 
• Browse Mode: IE9
• Document Mode: IE8 standards (or IE7 standards or NOT standard) 

I’ve the following ERROR (please see the attached document, image2):

SCRIPT5007: unable to get value of the property 'initElement': object is null 
or undefined
jquery.flot.js, line 698 Character 17

Finally, if  I choose  to use 
• Browse Mode: IE8 (or IE7)
• Document Mode: IE8 standards (or IE7 standards or NOT standard) 

I’ve no errors in js console, but I don’t see any chart (please see the 
attached document, image3).

Best regards,

Elena.

Original issue reported on code.google.com by elena.ar...@aboutsoft.it on 10 Aug 2011 at 9:47

Attachments:

GoogleCodeExporter commented 8 years ago
I find that when i use the excanvas.js / excanvas.min.js without conditional 
statments the initElement error goes away but another one comes up in IE.

I tested the same page in FF5 and Chrome and no javascript error so i have left 
them without conditional statements.

I do however get a different error but that i will post in another thread.

How about you... what happens when you take out the conditional statements

Original comment by littlefr...@gmail.com on 10 Aug 2011 at 7:01

GoogleCodeExporter commented 8 years ago
Hi,

yes, if I take out the conditional statements no javascript error occurs; that 
solves the issue I've reported in the second paragraph of my pevious mail.

But the issue reported in the third paragraph lives on; so, if I use IE9 whith 
different browse mode and document mode (IE8, for example), no error occurs and 
NO chart is drawn.

Best regards,

Elena.

PS: I wish my english were clear enough :-)

Original comment by elena.ar...@aboutsoft.it on 11 Aug 2011 at 9:19

GoogleCodeExporter commented 8 years ago
I got the same issue. Fixed by changing the conditional statement to "[if lte 
IE 9]"

Original comment by VolkVolk...@gmail.com on 6 Jan 2012 at 11:50

GoogleCodeExporter commented 8 years ago
I had the same issue.  However I did update to latest excanvas.js from the 
excanvas source site and put it in without conditionals and seemed to fix the 
issue.  But please advise on best practice once fixed.  Thanks!  Doug

Original comment by doug.ode...@gmail.com on 9 Mar 2012 at 5:39

GoogleCodeExporter commented 8 years ago
Flot requires canvas support.  When you use IE9 in quirks mode, canvas is not 
present, nor is excanvas included due to the conditional.

So there isn't really a best-practice; you just have to ensure that canvas is 
present when Flot tries to use it.  In the case of IE, that means including a 
valid DOCTYPE so your page renders in standards mode rather than quirks mode.

Original comment by dnsch...@gmail.com on 9 May 2012 at 12:32

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 9 May 2012 at 12:49

GoogleCodeExporter commented 8 years ago
I am just starting to test Flot in IE 9 and encountering several problems. From 
the dialog above it is not clear whether these problems have been fixed or not. 
Here is what I get:

Unable to get value of the property 'initElement': object is null or undefined 
jquery.flot.js, line 697 character 17

Object doesn't support property or method 'getContext' 
jquery.flot.js, line 765 character 13

I am using Flot 0.7. 

Please advise of fix or work around.

Original comment by rhjone...@gmail.com on 18 Dec 2012 at 11:36