Ticket #5846 (assigned defect)
GFX Silverlight renderer detection wont back off to SVG
| Reported by: | peller | Owned by: | elazutkin |
|---|---|---|---|
| Priority: | normal | Milestone: | future |
| Component: | DojoX GFX | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by elazutkin) (diff)
from Philip Taunton (IBM):
In trying to setup a web page that uses Silverlight for GFX drawing, I've found that the detection of the Silverlight plugin succeeds on a machine that does not have the plugin installed. The web page is setup with djConfig="gfxRenderer: 'silverlight,svg,vml'" such that it should back off to SVG if the Silverlight plugin is not found.
The page works fine on a system with the SL plugin installed, but on a system with no SL, it just displays the standard Microsoft "Get the plugin" banner rather than choosing SVG (browser is Firefox 2.0.0.11). There is also an associated JavaScript? error being produced on the console:
"dojo.byId(pluginName) has no properties"
Doing some investigation, it looks like the check for Silverlight on line 22 of dojox/gfx.js will pass purely if you have loaded the Silverlight.js file from Microsoft regardless of whether the plugin is actually installed. I believe a call to Silverlight.isInstalled(version) will be necessary to confirm the true existence of the Silverlight plugin.