Hi, I'm getting this "Warning" in mi js file, and because of this my code is not working (downloaded for the sample here: http://developer.samsung.com/tv/develop/legacy-platform-library/tut00055/index )
It seems that the Widget.js file cannot be found (and then the Widget class cannot be instantiated)
this is mi Main.js file:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; color: #3933ff} span.s1 {color: #931a68} span.s2 {color: #000000} span.Apple-tab-span {white-space:pre}
var widgetAPI = new Common.API.Widget();
var tvKey = new Common.API.TVKeyValue();
var Main = {};
Main.onLoad = function() {
console.log("antes del alert");
alert("Main.onLoad()");
console.log("despues del alert");
this.enableKeys();
widgetAPI.sendReadyEvent();
};
window.onShow = function () {
alert("window.onShow()");
};
window.onHide = function () {
alert("window.onHide()");
};
Main.onUnload = function() {
alert("Main.onUnload()");
};
and this mi index.html file:
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; color: #4e9192} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; color: #3933ff} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; color: #4f76cb} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'; min-height: 14.0px} p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px 'Eco Sans Mono'} span.s1 {color: #009193} span.s2 {color: #000000} span.s3 {color: #4e9192} span.s4 {color: #932192} span.s5 {text-decoration: underline ; color: #932192} span.Apple-tab-span {white-space:pre}
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<!-- Common widget API -->
<script type='text/javascript' language='javascript' src='Common/API/Widget.js'></script>
<script type='text/javascript' language='javascript' src='Common/API/TVKeyValue.js'></script>
<!-- Widget code -->
<script language="javascript" type="text/javascript" src="Javascript/Main.js"></script>
<link rel="stylesheet" href="CSS/Main.css" type="text/css">
</head>
<body onload="Main.onLoad();" onunload="Main.onUnload();">
</body>
</html>