Blog Posts

Canvas for IE

In my ongoing quest for replacing flash wherever possible ( :) ) I found ExplorerCanvas, a JavaScript library which emulates the canvas object of Firefox, Safari and Opera (whatwg specs) in Internet Explorer. It's not the fastest thing on earth, but for little tasks (like rotating bitmap images and drawing graphs) it could be a useful library. Here are some examples (works in IE, Safari 1.3/2.0, Opera 9 and Firefox 1.5):

Rotating image
3D Animation
Bouncing Balls

Related Entries:
- Kinect Hackday
- Techday Slides: Flash and the Quest for Accessibility
- Flash & the Quest for Accessibility - Part #2
- Flash & the Quest for Accessibility - Part #1
- 28.th User Group Meeting of the SFUG

Comments [2]

FridayUK, 07.11.2006 12:06 CEST

Awesome, thanks! I was looking for something just like this a few weeks ago and stumbled across your site today by chance. You are not alone in your "ongoing quest for replacing flash wherever possible". :-)

Not that I don't like Flash, but if I can do something reasonably easily without resorting to a plug in, I'd rather do that as it's often useful to have control over the code being generated (as it allows for more dynamic and more useful intefaces).

I've been doing some interesting stuff in the browser recently and the performance of the rendering engines under different circumstances is frequently interesting (some operations Safari has no problem with are noticeably sluggish under IE, and vice versa).

I noticed the Rotating Image example too is not so slick in IE (as you've said) yet it handles the (you would think more taxing) 3D Animation much more smoothly.

I've also noticed some things seem to have changed under IE7. While it's more compliant, the speed of the rendering on some, even fairly simple, operations has taken a big hit.

Louis, 27.06.2007 20:30 CEST

Great job explaining and presenting the postMessage() method for cross domain communications!

I have implemented a script utilizing postMessage() but am having a problem and wanted to know if you ever encountered it. Basically, my postMessage() command does not execute unless there is an alert preceding it. However, its not that the script just stops, it seems like it skips over the postMessage(). (I do have an event listener on the other side that immediately alerts so I know if the postMessage() command fired)

Hopefully you may know whats wrong. I have been trying to fix this for about a week now and have found no help online.

Thanks!
Louis

Add a comment

Your email adress will never be published. Comment spam will be deleted!