Hello Guys,
Just discover the problem while loading dygraph on IE 8. There are possible scenarios for dygraph failure.
case 1. instanceof is not support
replace instanceof with Object.prototype.toString.call()
Line 500 of dygraph-utils.js replace
typeof Node === "object" ? o instanceof Node :
with
typeof Node === "object" ? Object.prototype.toString.call(o) === Node :
case 2. canvas can't load
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<!--[if IE]><script src="excanvas.js"></script><![endif]-->
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="http://mycheckpoint.googlecode.com/svn-history/r95/trunk/dygraphs/excanvas.min.js"></script><![endif]-->
Hope above article will help you.
Just discover the problem while loading dygraph on IE 8. There are possible scenarios for dygraph failure.
case 1. instanceof is not support
replace instanceof with Object.prototype.toString.call()
Line 500 of dygraph-utils.js replace
typeof Node === "object" ? o instanceof Node :
with
typeof Node === "object" ? Object.prototype.toString.call(o) === Node :
case 2. canvas can't load
<!DOCTYPE html>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9">
<!--[if IE]><script src="excanvas.js"></script><![endif]-->
<!--[if lt IE 9]><script language="javascript" type="text/javascript" src="http://mycheckpoint.googlecode.com/svn-history/r95/trunk/dygraphs/excanvas.min.js"></script><![endif]-->
Hope above article will help you.