Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Tony

I just got the impactjs software and am playing around with the Drop game. It works great on my localhost in IE9 and Chrome. If I upload everything to my website it still works great in Chrome, on an Android (no sound or controls but it starts) but not in IE9. In IE9 the "hand held" graphic loads but then nothing else. In looking at the Console I get the 2 errors below.

SCRIPT438: Object doesn't support property or method 'addEventListener'
impact.js, line 327 character 4
SCRIPT5022: Exception thrown and not caught
impact.js, line 159 character 4

Damn !!!!!!!!!!!!!!!!!!!!!!!!!!!

I was going to erase this question because I found out the issue. I was going to say I tried IE7/8 compatibility mode but when I went to try that I see I'm already in IE7/8 mode. I switched back to IE9 and it works fine. So I'm leaving this as a comment instead of a question in case someone else has the same issue. I'll go back to sleep now...

1 decade ago by fugufish

IE9 supports addEventListener. If you upload to the a production server, and view it in IE9, it'll work.

1 decade ago by paularmstrong

Yep. IE7/8 do not support HTMLElement.addEventListener(); In versions < IE9, Microsoft had a proprietary call that was similar call "attachEvent". It was a pain in the ass to keep supporting all the time, to say the least.

Since canvas is only supported in IE9 and Impact requires canvas, I wouldn't worry about this!
Page 1 of 1
« first « previous next › last »