<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic It worked, thanks a lot. I in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143122#M78343</link>
    <description>&lt;P&gt;It worked, thanks a lot. I just put my click event in "init-app.js", inside of the function "app.initEvents". Thus, I think it was not a problem with CSP rules. My JS code had just to be loaded when the app initalizes. It worked in the emulator from Android 4.0 to 7.0. Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 16:41:58 GMT</pubDate>
    <dc:creator>Peter_S_</dc:creator>
    <dc:date>2017-07-13T16:41:58Z</dc:date>
    <item>
      <title>JavaScript not working on Android 4.4+</title>
      <link>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143120#M78341</link>
      <description>&lt;P&gt;Hi, I builded a simple test app for Android with XDK and it works perfectly in the emulator in Android 4.0, 4.2, 4.3, but the JavaScript code does not work neither in Android 4.4, nor 5.0, 5.1, 6.0, 7.0. Could someone help me to understand what is wrong ? Thanks. Here is the code:&lt;/P&gt;

&lt;P&gt;&amp;lt;body&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function getText() {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.getElementById('replace_text').innerHTML = 'A simple line';&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;a href="#" onclick="getText()"&amp;gt;Click here to replace text.&amp;lt;/a&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;lt;br /&amp;gt;&lt;BR /&gt;
	&amp;lt;div id="replace_text"&amp;gt;Here is the text to replace.&amp;lt;/div&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2017 11:58:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143120#M78341</guid>
      <dc:creator>Peter_S_</dc:creator>
      <dc:date>2017-07-09T11:58:25Z</dc:date>
    </item>
    <item>
      <title>Android 4.4 is the first</title>
      <link>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143121#M78342</link>
      <description>&lt;P&gt;Android 4.4 is the first version where the HTML5 runtime engine is based on Chrome, so that represents a big change in the interpreter. My suspicion is you are running into some problem with CSP rules or similar, such as running JavaScript in an html file has been disabled, or something similar.&lt;/P&gt;

&lt;P&gt;Try putting your JS in a js file and don't use "onclick" directly in the html. See the "blank cordova starter app" for an example of how to separate your html from you js. Specifically, see these lines &amp;gt; &lt;A href="https://github.com/gomobile/sample-cordova-starter-app/blob/master/www/js/init-app.js#L70" target="_blank"&gt;https://github.com/gomobile/sample-cordova-starter-app/blob/master/www/js/init-app.js#L70&lt;/A&gt; &amp;lt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2017 04:34:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143121#M78342</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2017-07-10T04:34:00Z</dc:date>
    </item>
    <item>
      <title>It worked, thanks a lot. I</title>
      <link>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143122#M78343</link>
      <description>&lt;P&gt;It worked, thanks a lot. I just put my click event in "init-app.js", inside of the function "app.initEvents". Thus, I think it was not a problem with CSP rules. My JS code had just to be loaded when the app initalizes. It worked in the emulator from Android 4.0 to 7.0. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 16:41:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/JavaScript-not-working-on-Android-4-4/m-p/1143122#M78343</guid>
      <dc:creator>Peter_S_</dc:creator>
      <dc:date>2017-07-13T16:41:58Z</dc:date>
    </item>
  </channel>
</rss>

