samizdatco / arbor

a graph visualization library using web workers and jQuery
http://arborjs.org
2.66k stars 634 forks source link

Does not work in IE8+ #9

Open vorien opened 13 years ago

vorien commented 13 years ago

When I try to load arborjs.org in IE8 or IE 9, I get the following errors:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; AskTbTRL2/5.9.1.14019) Timestamp: Fri, 10 Jun 2011 16:04:50 UTC

Message: Object doesn't support this property or method Line: 46 Char: 3 Code: 0 URI: http://arborjs.org/js/lib/arbor.js

Message: Object doesn't support this property or method Line: 66 Char: 3 Code: 0 URI: http://arborjs.org/js/lib/arbor-tween.js

Message: Object doesn't support this property or method Line: 36 Char: 3 Code: 0 URI: http://arborjs.org/js/lib/arbor-graphics.js

Message: Object doesn't support this property or method Line: 382 Char: 5 Code: 0 URI: http://arborjs.org/site.js

V

ricardoesteves commented 13 years ago

IE8 does not support canvas, but the ExplorerCanvas (http://code.google.com/p/explorercanvas/) solves this problem. But anyway I keep getting errors and not working in IE: Node.prototype.defineGetter("p", function () {

vorien commented 13 years ago

I tried xCanvas as well, but it still gave me errors.

kevinmershon commented 13 years ago

This isn't a bug with ArborJS, but an improper implementation of HTML5/ECMA 3.1 by Microsoft for IE 8 and 9.

kevinmershon commented 13 years ago

Use the IE8/9 getter/setter shim at http://icodesnip.com/snippet/javascript/cross-browser-getterssetters-including-ie if you must use IE.

ricardoesteves commented 13 years ago

I do not use IE, but many customers still use this crap ... I tried using this code, but still giving errors on arbor ... Do you have a working example of the arbor in IE?

kevinmershon commented 13 years ago

No, I don't. I've implemented ArborJS in an industry where IE pretty much has a 100% market penetration, so I feel your pain. On the upside, if more awesome HTML5-only libraries like Arbor start showing up everywhere, people are going to be forced to upgrade or get left behind. Quit shimming and using work-arounds to make everything work in IE.

On Jun 17, 2011, at 5:20 AM, "ricardoesteves" reply@reply.github.com wrote:

I do not use IE, but many customers still use this crap ... I tried using this code, but still giving errors on arbor ... Do you have a working example of the arbor in IE?

Reply to this email directly or view it on GitHub: https://github.com/samizdatco/arbor/issues/9#issuecomment-1387780

vorien commented 13 years ago

Thanks for responding. I can't get ArborJS to work even with the shim.

I wish that was how it works. Unfortunately, all it does is make more money for companies like Adobe. Developers -have to- implement for IE, that's just the way the world works. We'd much rather support open source solutions, but when none are available, we're forced to use pay-for solutions like Flash. Sad, but true...