title: How can i load my js file in the android?
body: <p>Hi I am very new to java script in android? My problem is my files not loaded in the android assets.</p>
  
  <p>When i run my code i got exception like. </p>
  
  <pre><code>07-08 11:49:10.809: I/chromium(25627): [INFO:CONSOLE(1)] "Uncaught ReferenceError: myFunction is not defined", source:  (1)
  07-08 11:49:11.100: I/chromium(25627): [INFO:CONSOLE(78)] "Uncaught TypeError: Cannot call method 'getContext' of null", source: file:///android_asset/keyGasGraphBuilder.js (78)
  </code></pre>
  
  <p>But In my code i have added all the files in the assets.</p>
  
  <p>and also i have added my code.js file in the html page while loading</p>
  
  <pre><code>&lt;script type="text/javascript" src="file:///android_asset/code.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and from the code i have call like </p>
  
  <pre><code>duvaltriangle.getSettings().setJavaScriptEnabled(true);
          WebSettings setting =duvaltriangle.getSettings();
          duvaltriangle.loadUrl("file:///android_asset/Dynamic Ratings - Duval DEMO.htm");
  
          String name = "Duval 2b OLTC Type IIb";
  
          duvaltriangle.loadUrl("javascript:myFunction(\""+name+"\")");
  </code></pre>
  
  <p>My js file: </p>
  
  <p>Please tell me where i missed. I think i have done all the procedure right way.</p>
  
  <pre><code>function myFunction(name) 
   {
  document.getElementById("demo").innerHTML = name;
   }
  </code></pre>