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

seanr’s picture

Priority: Normal » Critical

Getting 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

seanr’s picture

Title: Bluff chart js error » Bluff in IE: JS error "Object doesn't support this property or method"
Component: Miscellaneous » Code
Category: support » bug
skyliner’s picture

subscribing

rsevero’s picture

Assigned: Unassigned » rsevero

I'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.

rsevero’s picture

Version: 6.x-1.0-rc2 » 6.x-1.x-dev
Status: Active » Fixed

This 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.

skyliner’s picture

Can'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!

rsevero’s picture

Yvw.

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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

unegro’s picture

ok, but what's the solution?

I still having error in IE, could someone please explain the solution to a brazilian drupal newbie?

Thanks

rsevero’s picture

What 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.