Chart issue in IE8 VMLRenderer

Technical support, bug reports and more.

Chart issue in IE8 VMLRenderer

Postby rjivan on Wed Jul 28, 2010 6:35 pm

I have been getting spradic errrors in IE8 when rendered a chart. The error I get is
Code: Select all
Message: Unspecified error.
Line: 88
Char: 448
Code: 0
URI: http://localhost/highcharts/2.0.1/js/highcharts.js?a

Tracking this in the uncompressed code I see the error is coming from the function VMLRenderer on line 2696
Code: Select all
if (!doc.namespaces.hcv)



I seems like doc.namespaces has not been defined when this function was invoked. I found this post on the openlayers group
Microsoft's documentation does not say when
document.namespaces is ready, but all our OpenLayers examples use an
init function, which is bound to document.onload, because we know that
document.namespaces is available at the time document.onload is fired.


Is this something that can be addressed fairly quickly?

Thanks
rjivan
 
Posts: 34
Joined: Fri May 28, 2010 7:35 pm
Location: Washington, D.C

Re: Chart issue in IE8 VMLRenderer

Postby not on Thu Jul 29, 2010 12:49 pm

As it is an issue of highcharts internals, we have to wait for Torstein to fix it. He's off-line till Monday.
There are many problems with VMLRenderer all the time. I'm sure we all know what the dealing with JavaScript in IE means for developers :)
Thanks for reporting, anyway :)
Maciej Piecha,
Highcharts Support Team
User avatar
not
 
Posts: 329
Joined: Mon Jun 07, 2010 4:01 pm

Re: Chart issue in IE8 VMLRenderer

Postby rjivan on Fri Jul 30, 2010 4:08 pm

FYI..
Adding
Code: Select all
xmlns:v=urn:schemas-microsoft-com:vml


to the HTML tag seems to have fixed the issue. For exampe
Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v=urn:schemas-microsoft-com:vml xml:lang="en" lang="en">
rjivan
 
Posts: 34
Joined: Fri May 28, 2010 7:35 pm
Location: Washington, D.C

Re: Chart issue in IE8 VMLRenderer

Postby twhid on Fri Jul 30, 2010 8:58 pm

Thanks for this fix.
twhid
 
Posts: 2
Joined: Fri Jul 30, 2010 8:57 pm

Re: Chart issue in IE8 VMLRenderer

Postby ptyork on Sun Aug 01, 2010 6:31 am

Wow, great catch on the fix. I hope there's a "better" fix forthcoming, but for now, this is great. Thanks!
ptyork
 
Posts: 4
Joined: Sat Jul 17, 2010 8:52 pm

Re: Chart issue in IE8 VMLRenderer

Postby admin on Mon Aug 02, 2010 12:35 pm

Thanks for the report and the workaroun. Another workaround is to add the chart on window.load. See http://github.com/highslide-software/hi ... /#issue/34.
Torstein Hønsi
Developer,
Highslide Software
User avatar
admin
Site Admin
 
Posts: 7858
Joined: Thu Nov 09, 2006 1:22 pm
Location: Vik i Sogn, Norway


Return to Highcharts Usage

Who is online

Users browsing this forum: Google [Bot], omadruga and 3 guests