Microsoft Silverlight is een ontwikkelingsplatform waarmee men complexe grafische interfaces kunnen worden ontwikkeld voor in browsers, desktopsoftware en in mobiele apparaten. Oorspronkelijk is Silverlight als browser-plugin gebruikt.

{source}
<script type="text/javascript" src="/bcr/js/Silverlight.js"></script>
<script type="text/javascript" src="/bcr/js/Silverlight.supportedUserAgent.js"></script>
<script type="text/javascript">
//<![CDATA[

            $(document).ready(function(){
                $("a[rel=external]").click(function(){
                    pageTracker._trackPageview("/outgoing/"+ $(this).attr("href"));
                });
            });
       

        var silver_i;
        var silver_v;
        var versions = new Array("1.0", "2.0.30226", "2.0.30523", "2.0.30923", "2.0.31005", "3.0.40624");
        for (var i = versions.length - 1; i > 0; i--) {
            if (Silverlight.isInstalled(versions[i])) {
                silver_i = true;
                silver_v = versions[i];
                break;
            }
        }
        try {
            var plugin = navigator.plugins["Silverlight Plug-In"] ;
            if (plugin) {
                silver_i = true;
                silver_v = plugin.description;
            }
        } catch(e) {
        }
   
//]]>
</script>


  <div class="col-lg-10">
    <div class="table-responsive">
      <table class="table table-striped table-bordered table-hover">
        <thead>
          <tr class="primary">
            <th>Test</th>
            <th>Resultaat</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Silverlight Beschikbaar</td>
            <td><script language="javascript">var browser = navigator.appName; // Get browservar
silverlightInstalled = false;
if (browser == 'Microsoft Internet Explorer')
{
    try
    {
    var slControl = new ActiveXObject('AgControl.AgControl');
    silverlightInstalled = true;
    }
    catch (e)
    {
        // Error. Silverlight not installed.
    }
}
else
{
    // Handle Netscape, FireFox, Google chrome etc
    try
    {
        if (navigator.plugins["Silverlight Plug-In"])
        { silverlightInstalled = true; }
        }
        catch (e)
        {
            // Error. Silverlight not installed.
        }
}
if(silverlightInstalled)
{
    document.write( "Ja silverlight is beschikbaar");
}else
{
    document.write( "Nee silverlight is NIET beschikbaar");
}
</script></td>
          </tr>
          <tr>
            <td>Browser ondersteund door Silverlight</td>
            <td><script type="text/javascript">
//<![CDATA[

        var ok = Silverlight.supportedUserAgent();
        document.writeln(ok ? "Ja" : "Nee");
    //]]>
</script>
</td>
          </tr>
        </tbody>
      </table>
    </div>
</div>

{/source}

 

 

 

 

 

Download Silverlight Meer weten over MS SilverLight? Welke silverLight versie?