I am trying to implements a Silverlight object into my ASP.NET Webform due to assignment requirement.
so i've decide to implements photo into the webform, but i found a problem which is the JS runtime error.. but i don't where do i code wrong because i am follow the guideline of internet to do it..
i add a function into the js file
here is my js file
function createSilverlightPlugin(placeHolder, width, height, xamlfile) {
var parentElement = document.getElementById(placeHolder);
Silverlight.createObject
(
xamlfile,
parentElement,
placeHolder,
{
width: width,
height: height,
inplaceInstallPrompt: false,
background: '#fecefe',
isWindowless: 'false',
framerate: '24',
version: '1.0'
},
{
onError: null,
onLoad: null
},
null
);
}
but i can't find out why my js file will runtime error. :/