<?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 Recommendation for selection that works both on mobile and desktop in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687091#M63957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dropdown of county names.&amp;nbsp; I have tried a variety of different options, but it seems like everything I try works for either desktop or mobile, but not both.&amp;nbsp; The closest I could come was the a dijit/form/DataList in conjunction with a dojox/mobile/comboBox.&amp;nbsp; At least this displays both on the desktop as well as mobile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the users don't like this behavior on the desktop.&amp;nbsp; Rather than having a dropdown arrow or scrollbar they can use to see the names further down the list, they have to know to use the upward stroke/flicking motion more commonly associated with mobile.&amp;nbsp; They don't like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This starts out with a query screen and only loads the map if the user chooses to display it.&amp;nbsp; We have a mandate for everything to be mobile friendly.&amp;nbsp; In this case, the desktop experience is suffering.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ogi.oa.mo.gov/DHSS/VFC/index.html" title="https://ogi.oa.mo.gov/DHSS/VFC/index.html"&gt;Vaccines for Children Providers&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2015 21:37:35 GMT</pubDate>
    <dc:creator>TracySchloss</dc:creator>
    <dc:date>2015-03-18T21:37:35Z</dc:date>
    <item>
      <title>Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687091#M63957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a dropdown of county names.&amp;nbsp; I have tried a variety of different options, but it seems like everything I try works for either desktop or mobile, but not both.&amp;nbsp; The closest I could come was the a dijit/form/DataList in conjunction with a dojox/mobile/comboBox.&amp;nbsp; At least this displays both on the desktop as well as mobile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the users don't like this behavior on the desktop.&amp;nbsp; Rather than having a dropdown arrow or scrollbar they can use to see the names further down the list, they have to know to use the upward stroke/flicking motion more commonly associated with mobile.&amp;nbsp; They don't like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This starts out with a query screen and only loads the map if the user chooses to display it.&amp;nbsp; We have a mandate for everything to be mobile friendly.&amp;nbsp; In this case, the desktop experience is suffering.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://ogi.oa.mo.gov/DHSS/VFC/index.html" title="https://ogi.oa.mo.gov/DHSS/VFC/index.html"&gt;Vaccines for Children Providers&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 21:37:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687091#M63957</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-03-18T21:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687092#M63958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about just using the HTML select tag? I'm not sure what the behavior is on Android but on iOS the HTML select tag displays using the drum/wheel when viewed on an &lt;A href="http://alvinalexander.com/iphone/iphone-ipad-html-select-widget-wheel"&gt;iphone&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a test page using your app that you can use to see how this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://dl.dropboxusercontent.com/u/24627279/demo.html" title="https://dl.dropboxusercontent.com/u/24627279/demo.html"&gt;Vaccines for Children Providers&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2015 23:49:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687092#M63958</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-03-18T23:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687093#M63959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I feel like I've tried every option, but when I first wrote this, the agency was still at IE 8, and I was having issues with many things that worked just fine in the other browsers.&amp;nbsp; "Just use Chrome" is not an acceptable workaround for my users, because the state standard is IE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have also found that the emulators don't always emulate, for components like this in particular.&amp;nbsp; It might not work on the emulators, but still on a particular device and vice versa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The agency has updated to IE 9 this past winter, so maybe if I go back to the generic HTML select, it will work now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 13:26:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687093#M63959</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-03-19T13:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687094#M63960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tracy-&lt;/P&gt;&lt;P&gt;Here is something that might help you:&amp;nbsp; I've got a global var set outside my define or require to account for whether or not the app is being accessed by a mobile or desktop os:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var isMobile = {
&amp;nbsp; Android: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return navigator.userAgent.match(/Android/i);
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp;&amp;nbsp;&amp;nbsp; BlackBerry: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return navigator.userAgent.match(/BlackBerry/i);
&amp;nbsp;&amp;nbsp;&amp;nbsp; },
&amp;nbsp; iOS: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return navigator.userAgent.match(/iPhone|iPad|iPod/i);
&amp;nbsp; },
&amp;nbsp; Opera: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return navigator.userAgent.match(/Opera Mini/i);
&amp;nbsp; },
&amp;nbsp; Windows: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return navigator.userAgent.match(/IEMobile/i);
&amp;nbsp; },
&amp;nbsp; any: function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
&amp;nbsp; }
};&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then inside my ready function I setup a conditional:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if (isMobile.any()){
&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("locate_form").style.visibility= "visible"; //hidden test condtion switcher//
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else{
&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("locate_form").style.visibility= "hidden"; //visible test condtion switcher//
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then the dom element "locate_form" visibility property then hides or displays the dijit or control.&amp;nbsp; In this case, I am hiding or displaying the geolocate button based on the OS detected:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;div id="cpCenter" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region: 'center'"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="divSearch"&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id="locate_form"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="LocateButton"&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/form&amp;gt;
&amp;lt;/div&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that this is not the most elegent method and is somewhat of a quick and dirty mediaQuery, but it does work and i would think it should be fairly easy to swap out say a dojo FilteringSelect with a dojox element.&amp;nbsp; It's actually something I want to try next-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also used this method for controlling snapping using the snapping manager here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/122986" target="_blank"&gt;Syntax Help: If else containing constructor options&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a little assistance from &lt;A href="https://community.esri.com/migrated-users/3101" target="_blank"&gt;Robert Scheitlin, GISP&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687094#M63960</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-12T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687095#M63961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly, Is there somewhere else you could post the example you made?&amp;nbsp; I'm just now getting back to this, and your link is getting blocked by our cybersecurity.&amp;nbsp; When I contacted our security team, asking to have it unblocked, I was told 'no', since all personal network storage requests are routinely blocked. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 14:14:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687095#M63961</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-03-25T14:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687096#M63962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've attached a zipped version of the code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 16:18:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687096#M63962</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2015-03-25T16:18:58Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687097#M63963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp; that will give me something to dig into.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 16:25:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687097#M63963</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-03-25T16:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687098#M63964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you ever tried using jQuery? I have an application that has a JavaScript file that allows for jQuery desktop to be used on mobile devices. The file that I use to do this is located at: &lt;A href="https://github.com/csergent45/gisWeb/tree/master/js" title="https://github.com/csergent45/gisWeb/tree/master/js"&gt;gisWeb/js at master · csergent45/gisWeb · GitHub&lt;/A&gt;&amp;nbsp; The file name is jquery-ui.touch-punch.js&amp;nbsp;&amp;nbsp; You just need to add jQuery and this file to your project and then you can use jQuery desktop on mobile devices and they look the same on both. Just an option if you would like to try it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 19:05:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687098#M63964</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-03-25T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Recommendation for selection that works both on mobile and desktop</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687099#M63965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There was a little issue with the style that Kelly sent, one of the widths on the select style was too wide, completely covering up the dropdown arrow.&amp;nbsp; Otherwise it works for me and also in the emulators I tried.&amp;nbsp; I don't expect much mobile use of this particular map, the subject matter is pretty obscure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 21:09:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/recommendation-for-selection-that-works-both-on/m-p/687099#M63965</guid>
      <dc:creator>TracySchloss</dc:creator>
      <dc:date>2015-03-25T21:09:09Z</dc:date>
    </item>
  </channel>
</rss>

