I am moving my application from SL 1.1 to SL 2.0.
In SL1.1 there were javascript - TestPage.html.js where the silverlight frame was being launched and we could hook
our javascript functions. But now in SL 2.0 project, I don't see any javascript file at all. How do I hook all my javascript functions.
In SL1.1 we had this piece of code that is not present in SL2.0 or I am missing the file where it is there - Please let me know. Thanks.
/contains calls to silverlight.js, example below loads Page.xaml
function createSilverlight()
{
Silverlight.createObjectEx({
source: "Page.xaml",
parentElement: document.getElementById("SilverlightControlHost"),
id: "SilverlightControl",
properties: {
width: "100%",
height: "100%",
version: "1.1",
enableHtmlAccess: "true"
},
events: {onLoad: getcontrl_Loaded}
});
// Give the keyboard focus to the Silverlight control by default
document.body.onload = function() {
var silverlightControl = document.getElementById('SilverlightControl');
if (silverlightControl)
silverlightControl.focus();
}
}