A
Andrew Poulos
I've been reading the documentation on the MS site about silverlight. It
promises much and I've started playing around with it. Though I'm not
overly keen on using code and/or hosting my content at 3rd party URIs
(agappdom.net and silverlight.services.live.com).
I'm trying out the simple example that MS provides in IE 6:
<!-- (1) add a script reference -->
<script src="http://agappdom.net/g/silverlight.js"
type="text/javascript"></script>
<!-- (2) define a Javascript function to create the hosted object;
usually in a separate .js file -->
<script type="text/javascript">
var pe;
function CreateSilverlight() {
Sys.Silverlight.createHostedObjectEx({ source:
"streaming:/32/SlLogo", parentElement: pe});
}
</script>
<!-- (3) define a DIV to contain the hosted object -->
<div id="myApp" style="position:absolute; left:100px; top:100px;
width:300px; height:240px; background:red;">
<!-- (4) add a script element to call the create function -->
<script type="text/javascript">
pe = document.getElementById("myApp");
CreateSilverlight();
</script>
</div>
And I get 3 things:
1.
Error: Library not registered.
Code: 0
URL: http://msbluelight-0.agappdom.net/e1/32/35...
2.
Error: 'Silverlight' is undefined
Code:0
URL: http://msbluelight-0.agappdom.net/e1/32/35...
3.
The "Get Microsoft Silverlight" logo displayed.
If I use the iframe method for displaying silverlight the app (media?)
displays the app displays in FF 2 but still errors in IE 6.
If I go to silverlight.net silverlight content displays correctly so
that makes me think I have the plugin installed correctly.
Does anyone understand silverlight enough to explain how to use
javascript to display it?
Andrew Poulos
promises much and I've started playing around with it. Though I'm not
overly keen on using code and/or hosting my content at 3rd party URIs
(agappdom.net and silverlight.services.live.com).
I'm trying out the simple example that MS provides in IE 6:
<!-- (1) add a script reference -->
<script src="http://agappdom.net/g/silverlight.js"
type="text/javascript"></script>
<!-- (2) define a Javascript function to create the hosted object;
usually in a separate .js file -->
<script type="text/javascript">
var pe;
function CreateSilverlight() {
Sys.Silverlight.createHostedObjectEx({ source:
"streaming:/32/SlLogo", parentElement: pe});
}
</script>
<!-- (3) define a DIV to contain the hosted object -->
<div id="myApp" style="position:absolute; left:100px; top:100px;
width:300px; height:240px; background:red;">
<!-- (4) add a script element to call the create function -->
<script type="text/javascript">
pe = document.getElementById("myApp");
CreateSilverlight();
</script>
</div>
And I get 3 things:
1.
Error: Library not registered.
Code: 0
URL: http://msbluelight-0.agappdom.net/e1/32/35...
2.
Error: 'Silverlight' is undefined
Code:0
URL: http://msbluelight-0.agappdom.net/e1/32/35...
3.
The "Get Microsoft Silverlight" logo displayed.
If I use the iframe method for displaying silverlight the app (media?)
displays the app displays in FF 2 but still errors in IE 6.
If I go to silverlight.net silverlight content displays correctly so
that makes me think I have the plugin installed correctly.
Does anyone understand silverlight enough to explain how to use
javascript to display it?
Andrew Poulos