Hi,
I am currently working on a small Silverlight application, but cannot find out what is wrong in my HTML.
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> WPF/E Analog Clock</title>
<script type="text/Javascript" src="js/aghost.js"></script>
<script type="text/Javascript" src="js/clock.js"></script>
</head>
<body>
<form>
<div id="agControlHost">
<script type="text/javascript">
// Create the WPF/E ActiveX control.
// The technique here enables your WPF/E content to receive
// input before it's ActiveX control is clicked.
new agHost(
/* hostElementID (The HTML element inside of
which the WPF/E ActiveX control is inserted.
This element is usually a <div>.)
If you change the name of the host HTML
element, change it here too.*/
"agControlHost",
"agControl1", // The ID of the WPF/E ActiveX control to create.
"250px", // The width of the control.
"250px", // The height of the control.
"#D6D6D6", // The background color of the control.
null, // SourceElement (name of script tag containting XAML)
"clock.xaml", // The URL of the source file containing WPF/E content.
"false", // IsWindowLess
"30", // Maximum FPS
null // OnError handler.
);
// Create a global variable for the WPF/E ActiveX control,
// to use when you want to retreived named XAML elements.
var agControl = document.getElementByID("agControl1");
</script>
</div>
</form>
</body>
</html>[/HTML]
For whatever reason, I just this error in the browser:
Line: 182
Char: 9
Error: 'undefined' is null or is not an object
Code: 0
URL: <myfile>
Any help would be greatfully appreciated.
Thanks,
Vincent Pascuzzi.