omtetra/openmentor-grails

Reports don't work in IE8

Closed this issue · 2 comments

"I discovered IE8 doesn’t support your graphs although I do have Javascript loaded. Worked fine in Firefox. Haven’t checked Chrome. Would it be helpful to have some kind of alert pop up to tell students that they will see graphs if they use an appropriate browser?"

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; WOW64; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET4.0C; .NET4.0E; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Mon, 22 Apr 2013 17:32:55 UTC

Message: Object doesn't support this property or method
Line: 175
Char: 3
Code: 0
URI: http://openmentor.cloudfoundry.com/js/jquery.bulletcharts.js

Mostly this was due to JavaScript 1.5. The array iteration methods .map and .forEach are JS 1.6, and not available in IE8. I've written them as a workaround, but really, adding shims might have been a better approach.