Hi guys,
I have a basic Nokia WRT app. I have a trivial problem, but its driving me crazy.
The onLoad method in the standard generated (index.html) HTML calls a method init inside the basic JS. This in turn should call a method in some other JS file.
This does not work for some reason. Here's my code.
index.html
Code:<body onLoad="javascript:init();"> <span id="ad"></span> <script type="text/javascript"> </script> </body>
basic.js
Inside the UtilClass.js code is as followCode:function init(){ alert ("inside basic"); var myVar = new UtilCalss(); myVar.testFunc(); }
Both classes are in the same folder. Why is my testFunc not being invoked?Code:function UtilCalss(){ function testFunc(){ alert ("inside test func"); } }
Thanks for your advice in advance.

Reply With Quote


