<?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 I recommend moving your  in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/methods-declared-on-app-js-doesnt-work-for-me/m-p/1116740#M74357</link>
    <description>&lt;P&gt;I recommend moving your "click" event handler within the following code block:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$(document).ready(function(){
    $("#button").click(function(){
        //Code goes here
    });
}); &lt;/PRE&gt;

&lt;P&gt;This allows for the event handler to be assigned to an element with an id called button after the DOM is fully loaded.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2016 00:20:00 GMT</pubDate>
    <dc:creator>Elroy_A_Intel</dc:creator>
    <dc:date>2016-02-06T00:20:00Z</dc:date>
    <item>
      <title>methods declared on app.js doesnt work for me</title>
      <link>https://community.intel.com/t5/Software-Archive/methods-declared-on-app-js-doesnt-work-for-me/m-p/1116739#M74356</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hi! Incredible tool intel-xdk.&lt;/P&gt;

&lt;P&gt;Im working a cordova project and noticed that code inside app.js is recognized by other js files. I added some "click" events and doesnt seem to find methods declared in app.js,&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;        &amp;lt;script src="cordova.js" id="xdkJScordova_"&amp;gt;&amp;lt;/script&amp;gt;

        &amp;lt;script src="js/app.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- for your event code, see README and file comments for details &lt;STRONG&gt;(doesnt work for me!)&lt;/STRONG&gt; --&amp;gt;
        &amp;lt;script src="js/init-app.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- for your init code, see README and file comments for details --&amp;gt;
        &amp;lt;script src="xdk/init-dev.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- normalizes device and document ready events, see file for details --&amp;gt;
        
        &amp;lt;script type="application/javascript" src="lib/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;script type="application/javascript" src="jqm/jquery.mobile-min.js" data-ver="0"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;script type="application/javascript" src="js/acceso_login_user_scripts.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Eventought if i declare another js file just before my x_user_script.js file it works&lt;/P&gt;

&lt;PRE class="brush:xml;"&gt;        &amp;lt;script src="cordova.js" id="xdkJScordova_"&amp;gt;&amp;lt;/script&amp;gt;

        &amp;lt;script src="js/app.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- for your event code, see README and file comments for details --&amp;gt;
        &amp;lt;script src="js/init-app.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- for your init code, see README and file comments for details --&amp;gt;
        &amp;lt;script src="xdk/init-dev.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;!-- normalizes device and document ready events, see file for details --&amp;gt;
        
        &amp;lt;script type="application/javascript" src="lib/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
        &amp;lt;script type="application/javascript" src="jqm/jquery.mobile-min.js" data-ver="0"&amp;gt;&amp;lt;/script&amp;gt;
       &lt;STRONG&gt;&amp;lt;!-- here include a .js file with methods, and works! --&amp;gt;&lt;/STRONG&gt;
        &amp;lt;script type="application/javascript" src="js/acceso_login_user_scripts.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I suppose theres a initialization on init-dev.js that erases the previous js files. if this is a bug maybe the app.js file shouldnt be generated in fisrt place?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 22:18:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/methods-declared-on-app-js-doesnt-work-for-me/m-p/1116739#M74356</guid>
      <dc:creator>Sergio_R_1</dc:creator>
      <dc:date>2016-02-03T22:18:27Z</dc:date>
    </item>
    <item>
      <title>I recommend moving your</title>
      <link>https://community.intel.com/t5/Software-Archive/methods-declared-on-app-js-doesnt-work-for-me/m-p/1116740#M74357</link>
      <description>&lt;P&gt;I recommend moving your "click" event handler within the following code block:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;$(document).ready(function(){
    $("#button").click(function(){
        //Code goes here
    });
}); &lt;/PRE&gt;

&lt;P&gt;This allows for the event handler to be assigned to an element with an id called button after the DOM is fully loaded.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 00:20:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/methods-declared-on-app-js-doesnt-work-for-me/m-p/1116740#M74357</guid>
      <dc:creator>Elroy_A_Intel</dc:creator>
      <dc:date>2016-02-06T00:20:00Z</dc:date>
    </item>
  </channel>
</rss>

