<?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 Thanks! I tried to include js in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042318#M46554</link>
    <description>&lt;P&gt;Thanks! I tried to include&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;js/jq.appframework.min.js and&amp;nbsp;js/appframework.ui.js after I downloaded them from github, but it still does not work. However, after I use the&amp;nbsp;jquery-2.1.3 instead of 1.1.1, it works perfectly! Thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2015 02:14:35 GMT</pubDate>
    <dc:creator>Jim_A_1</dc:creator>
    <dc:date>2015-04-27T02:14:35Z</dc:date>
    <item>
      <title>How can I use appframework UI with jQuery and jQuery.Validate?</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042316#M46552</link>
      <description>&lt;P&gt;Dear XDK experts,&lt;/P&gt;

&lt;P&gt;I created a AppFramework project with intel XDK (ver. 1912), and created one button with click event via the app designer. The following js code is created in the index_user_scripts.js file.&amp;nbsp;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;The code works fine. When I click the button, the alert pops up. However, when I uncommented the initValidation() in the event_handlers(), the click event won't work and I will get error messages saying jquery is not defined. I doubled checked the include path and verified the jquery js file is in the js folder (I downloaded and saved in the js folder). I have shown the index_user_scripts.js, the header of the index.html file and the error message below. Any help will be greatly appreciated. I have searched online and some said jquery and appframework UI cannot be used together. Is it still true?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 15.609601020813px;"&gt;BTW, does appFramework has built-in ability to do form validation? Is jquery.validate the best for form validate? If not, which one is the best for a xdk project? Thanks!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;//===== Content of the index_user_scripts.js file =====//&lt;/P&gt;

&lt;P&gt;(function()&lt;BR /&gt;
	{&lt;BR /&gt;
	&amp;nbsp;"use strict";&lt;BR /&gt;
	&amp;nbsp;/*&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;hook up event handlers&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;*/&lt;BR /&gt;
	&amp;nbsp;function register_event_handlers()&lt;BR /&gt;
	&amp;nbsp;{&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; initValidation();&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;/* button &amp;nbsp;Button */&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; $(document).on("click", ".uib_w_2", function(evt)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* your code goes here */&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert("Button is clicked.");&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; });&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;}&lt;BR /&gt;
	&amp;nbsp;document.addEventListener("app.Ready", register_event_handlers, false);&lt;BR /&gt;
	})();&lt;/P&gt;

&lt;P&gt;function initValidation()&lt;BR /&gt;
	{&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; $("#loginForm").validate&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; (&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rules:&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txt_login_email:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; required: true,&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; email: true&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ,messages:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; txt_login_email: "Please enter a valid email address"&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; );&lt;BR /&gt;
	}&lt;/P&gt;

&lt;P&gt;//======= index.html header =========/&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;.........&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="cordova.js" id="xdkJScordova_"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="js/app.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- for your event code, see README and file comments for details --&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="js/init-app.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- for your init code, see README and file comments for details --&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="xdk/init-dev.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- normalizes device and document ready events, see file for details --&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; You may substitute jQuery for the App Framework selector library.&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; See &lt;A href="http://app-framework-software.intel.com/documentation.php#afui/afui_jquery" target="_blank"&gt;http://app-framework-software.intel.com/documentation.php#afui/afui_jquery&lt;/A&gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; --&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script type="application/javascript" src="app_framework/2.1/appframework.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script type="application/javascript" src="app_framework/2.1/appframework.ui.js" data-ver="1"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="js/jquery-1.1.1.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script src="js/jquery.validate.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;script type="application/javascript" src="js/index_user_scripts.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;.........&lt;/P&gt;

&lt;P&gt;//====== Error messages after include the jquery.js ======//&lt;/P&gt;

&lt;P&gt;Uncaught ReferenceError: jQuery is not defined jquery.validate.min.js:4&lt;BR /&gt;
	Failed to load resource: the server responded with a status of 404 (Not Found) &lt;A href="http://127.0.0.1:58889/http-services/ui-builder/web/unit_tests/utils/test_styleparsing.css" target="_blank"&gt;http://127.0.0.1:58889/http-services/ui-builder/web/unit_tests/utils/test_styleparsing.css&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 07:11:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042316#M46552</guid>
      <dc:creator>Jim_A_1</dc:creator>
      <dc:date>2015-04-26T07:11:06Z</dc:date>
    </item>
    <item>
      <title>You can´t use appframework.js</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042317#M46553</link>
      <description>&lt;P&gt;You can´t use appframework.js and jquery.js.&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;lt;script type="application/javascript" src="app_framework/2.1/appframework.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&lt;SPAN style="line-height: 1.5;"&gt;&amp;lt;script src="js/jquery-1.1.1.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 13.0080003738403px; line-height: 19.5120010375977px;"&gt;You need to change&amp;nbsp;&lt;/SPAN&gt;the order of the lines and the name of the second one. I use:&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;lt;script type="application/javascript" src="js/jquery-2.1.3.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;lt;script type="application/javascript" src="js/jq.appframework.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;lt;script type="application/javascript" src="js/appframework.ui.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;lt;script type="application/javascript" src="js/jquery-ui.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;And it works well.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 12:51:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042317#M46553</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2015-04-26T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Thanks! I tried to include js</title>
      <link>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042318#M46554</link>
      <description>&lt;P&gt;Thanks! I tried to include&amp;nbsp;&lt;SPAN style="font-size: 12px; line-height: 14.3999996185303px;"&gt;js/jq.appframework.min.js and&amp;nbsp;js/appframework.ui.js after I downloaded them from github, but it still does not work. However, after I use the&amp;nbsp;jquery-2.1.3 instead of 1.1.1, it works perfectly! Thanks so much for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 02:14:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/How-can-I-use-appframework-UI-with-jQuery-and-jQuery-Validate/m-p/1042318#M46554</guid>
      <dc:creator>Jim_A_1</dc:creator>
      <dc:date>2015-04-27T02:14:35Z</dc:date>
    </item>
  </channel>
</rss>

