Using Trixie To Hijack All <Canvas> Tags For IE Support Via SLCanvas

by Jon Davis 13. March 2010 00:27

I spent hours over the last couple weeks trying to make it so that one can get a browser add-in for IE that would auto-inject a reference to SLCanvas so that all web pages that use <canvas> would “just work” with IE 6/7/8. The good news is that I succeeded in the effort to get SLCanvas to simply show up on normal web pages. First I made SLCanvas fully accessible on the Internet without being site-deployed, by putting it on Google’s App Engine: http://silverlightcanvas.appspot.com/ (http://silverlightcanvas.appspot.com/static/slcanvas.js). I then tried GreaseMonkey for IE, but that turned out not to work worth crap. Then I started looking at making my own plug-in, but by the time I discovered SpicIE (which is, by the way, really handy), I discovered Trixie which was exactly what I originally had in mind. I wrote the Trixie script and it works fine: http://slcanvas.codeplex.com/SourceControl/changeset/view/38220#752961

The bad news is that SLCanvas might not be quite as completely implemented as I had hoped, and, worse, the web sites that use <canvas> in their demos are invoking the 2D context long before SLCanvas runs, or they are detecting IE and puking right off the bat. When they try, I’m getting a whole lot of “object doesn’t support this or that” errors:

image

Overall, this was a great idea that went a lot further south than I imagined.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading




 

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

About the author

Jon Davis (aka "stimpy77") has been a programmer, developer, and consultant for web and Windows software solutions professionally since 1997, with experience ranging from OS and hardware support to DHTML programming to IIS/ASP web apps to Java network programming to Visual Basic applications to C# desktop apps.
 
Software in all forms is also his sole hobby, whether playing PC games or tinkering with programming them. "I was playing Defender on the Commodore 64," he reminisces, "when I decided at the age of 12 or so that I want to be a computer programmer when I grow up."

Jon was previously employed as a senior .NET developer at a very well-known Internet services company whom you're more likely than not to have directly done business with. However, this blog and all of jondavis.net have no affiliation with, and are not representative of, his former employer in any way.

Contact Me 


Tag cloud

Calendar

<<  May 2020  >>
MoTuWeThFrSaSu
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

RecentPosts