<?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 thank you CHRIS, sure I in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095440#M66787</link>
    <description>&lt;P&gt;thank you CHRIS, sure I tested it on device.. but unfortunately not working..&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;regarding &lt;STRONG&gt;Hammer.js&lt;/STRONG&gt;, also I tried it with this code in &amp;nbsp;&lt;STRONG&gt;index_user_scripts.js&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;var element = document.getElementById('contact_page');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hammer(element).on("swipeleft", function(){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activate_page("#continue_page");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;and still not fired! whether in simulator or in device!&lt;/P&gt;

&lt;P&gt;you mentioned, I have to change some code, what do you mean, because I added some code, not changing.. :)&lt;/P&gt;

&lt;P&gt;I don't know maybe something missing there, any suggestion?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jan 2016 04:55:17 GMT</pubDate>
    <dc:creator>Osama_R_</dc:creator>
    <dc:date>2016-01-24T04:55:17Z</dc:date>
    <item>
      <title>how to swipe with AppFramework using JQuery Mobile</title>
      <link>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095438#M66785</link>
      <description>&lt;P&gt;guys, i'm trying to handle the swipe event manually using &lt;A href="https://jquerymobile.com/"&gt;jquery.mobile&lt;/A&gt; library.. and the bellow code works normally with a test html page, but in XDK not working!&lt;/P&gt;

&lt;P&gt;i'm using AppFramework 3:&lt;/P&gt;

&lt;P&gt;&lt;U&gt;declaration in index.html header&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;script src="lib/jmobile/jquery-1.11.3.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;BR /&gt;
	&amp;lt;script src="&lt;SPAN style="font-size: 13.008px; line-height: 15.6096px;"&gt;lib/jmobile/&lt;/SPAN&gt;jquery.mobile-1.4.5.min.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;U&gt;in index_user_scripts.js:&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;$(document).on("&lt;STRONG&gt;pagecreate&lt;/STRONG&gt;","#&lt;STRONG&gt;testswipe&lt;/STRONG&gt;",function(){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $("&lt;STRONG&gt;div&lt;/STRONG&gt;").on("swipe",function(){&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //$("&lt;STRONG&gt;span&lt;/STRONG&gt;").text("Swipe detected!"); //this line written for test if the event fired on not..!&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; activate_page("#&lt;STRONG&gt;continue_page&lt;/STRONG&gt;");&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; &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;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;U&gt;in index.html body:&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;&amp;lt;div id="&lt;STRONG&gt;testswipe&lt;/STRONG&gt;" &amp;nbsp;data-role="&lt;STRONG&gt;page&lt;/STRONG&gt;" style="height:100px; width:200px; background-color:#999;"&amp;gt;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 15.6096px;"&gt;&amp;nbsp;the above code works normally with a test html page, but in XDK not working!&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;any suggestion?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 05:58:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095438#M66785</guid>
      <dc:creator>Osama_R_</dc:creator>
      <dc:date>2016-01-20T05:58:59Z</dc:date>
    </item>
    <item>
      <title>Have you tested it on a</title>
      <link>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095439#M66786</link>
      <description>&lt;P&gt;Have you tested it on a device?&lt;/P&gt;

&lt;P&gt;Remember, "swipe" is a touch based event, not a mouse based event. That might be why it isn't working in the XDK. If you want to map mouse events over to touch, there are a couple of approaches: &amp;nbsp;&lt;/P&gt;

&lt;P&gt;TouchPunch, a jQuery UI plugin. &amp;nbsp;http://touchpunch.furf.com/ &amp;nbsp; You might be able to use this without changing your code much. &amp;nbsp;&lt;/P&gt;

&lt;P&gt;Hammer.js &amp;nbsp;,&amp;nbsp;http://hammerjs.github.io/, &amp;nbsp; Hammer.js provides all the swiping events. We like it a lot, but you might have to change more code.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Also, if it _is_ working on device, then you could live with it, rather than trying to complicate things by mapping mouse events to touch.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;But perhaps I've misunderstood your situation. If so, let me know with a fuller description.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2016 16:57:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095439#M66786</guid>
      <dc:creator>Chris_P_Intel</dc:creator>
      <dc:date>2016-01-20T16:57:40Z</dc:date>
    </item>
    <item>
      <title>thank you CHRIS, sure I</title>
      <link>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095440#M66787</link>
      <description>&lt;P&gt;thank you CHRIS, sure I tested it on device.. but unfortunately not working..&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;regarding &lt;STRONG&gt;Hammer.js&lt;/STRONG&gt;, also I tried it with this code in &amp;nbsp;&lt;STRONG&gt;index_user_scripts.js&lt;/STRONG&gt;:&lt;/P&gt;

&lt;P&gt;var element = document.getElementById('contact_page');&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hammer(element).on("swipeleft", function(){&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activate_page("#continue_page");&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;and still not fired! whether in simulator or in device!&lt;/P&gt;

&lt;P&gt;you mentioned, I have to change some code, what do you mean, because I added some code, not changing.. :)&lt;/P&gt;

&lt;P&gt;I don't know maybe something missing there, any suggestion?&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2016 04:55:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/how-to-swipe-with-AppFramework-using-JQuery-Mobile/m-p/1095440#M66787</guid>
      <dc:creator>Osama_R_</dc:creator>
      <dc:date>2016-01-24T04:55:17Z</dc:date>
    </item>
  </channel>
</rss>

