jb's Blog
"behold the turtle, he only makes progress when he sticks his neck out"
Silverlight on Windows Safari
12 Jun 2007 11:05
So I noticed that Silverlight wasnt working on Safari while browsing around doing some testing this morning. The standard install box was present despite having the runtime already installed :(
Bummer... Until Tim Heuer mentioned that it would likely be possible to get it working via some updates to the Silverlight javascript. That peaked my interest so I had a look at Help/About Plugins.. and behold, all of my Firefox plugins were being picked up including..
WPFe Plug-In
0.8.5.0 — from file “npctrl.dll”.
MIME Type
Description
Extensions
application/ag-plugin
npctrl
scr
Great! So just a browser detection issue then, so with a quick mod to Silverlight.js to include the browser check for Safari and we are back cooking with gas!
Fantastic! So the only change required was in detectAgControlVersion() to update the Firefox detection line (which looks for the WPFe Plug-In) to also include a check for Firefox as per below:
if (navigator.userAgent.indexOf("Firefox") != -1 || navigator.userAgent.indexOf("Safari") != -1)
{
[...]
}
Add a new comment:
Name:
Website:
Comment:
history
2006 (47)
2007 (79)
2008 (55)
blogs i read
John-Daniel Trask
Andrew Peters
Ivan Towlson
Josh Robb
Chris Auld
Ivan Porto Carrero
Darryl Burling
Nigel Parker
links
Mindscape
Intergen
rss feed