Closed (fixed)
Project:
Charts and Graphs
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
11 Feb 2010 at 16:02 UTC
Updated:
16 Jul 2010 at 22:47 UTC
Bluff chart do not work. I receive this error:
Webpage error details
Message: Object doesn't support this property or method
Line: 3999
Char: 32662
Code: 0
URI: http://server/sites/default/files/js/js_b9b45f6fe3d02ba52f44eaf4f94316b6.js
Message: Object doesn't support this property or method
Line: 3742
Char: 7
Code: 0
URI: http://server/sites/default/files/js/js_b9b45f6fe3d02ba52f44eaf4f94316b6.js
Any clue?
Thanks!
Comments
Comment #1
seanrGetting this too. Bluff graphs don't work in any version of IE.
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0)
Timestamp: Wed, 26 May 2010 18:30:06 UTC
Message: Object doesn't support this property or method
Line: 1
Char: 32617
Code: 0
URI: .../bluff-min.js?C
Message: Object doesn't support this property or method
Line: 2576
Char: 7
Code: 0
URI: .../bluff-src.js?C
Comment #2
seanrComment #3
skyliner commentedsubscribing
Comment #4
rsevero commentedI'm reproducing the issue here. It seems to be related to some kind of bad interaction between some Bluff code and Drupal javascript support, probably Drupal.behaviors.
AFAICT the main chart creation code must be embedded in a Drupal.behaviours object but there still is something that doesn't get properly initialized.
Comment #5
rsevero commentedThis seems to be related to specific Bluff code to generated the requested chart being executed before excanvas.js being loaded/executed.
Besides that there is a bug in Bluff where you can't use strings like "8px" to set text sizes in IE (I tested in IE 8). You must use numbers like 8. See (http://github.com/jcoglan/bluff/issues/#issue/4).
Both issues are fixed by commit #384662.
Comment #6
skyliner commentedCan't thank you enough, rsevero!
Still getting a couple of (non-impacting) javascript errors, but the graphs are showing now in IE8, so am a happier than ever Charts and Graphs-Bluff user - Module definitely get my vote for fastest turnaround (views) graphing!
Comment #7
rsevero commentedYvw.
AFAICT, the javascript errors come from the usage of Drupal.behaviors method that, I hope, is the solution for #803654: Bluff Charts incompatible with ajax but not the solution for this issue.
For this issue the only method that worked for me is the $(window).load() method. So, in fact, the graph is being drawn twice because of IE.
Comment #9
unegro commentedok, but what's the solution?
I still having error in IE, could someone please explain the solution to a brazilian drupal newbie?
Thanks
Comment #10
rsevero commentedWhat error are you seeing exactly? Is it the same this issue deals with? If yes please reopen and provide details: what you did? what happened? what were you expecting?
If the error you get is a different one, please open a new issue.