<?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 Re: Javascript dojox/form/CheckedMultiSelect in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38451#M3252</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David.&amp;nbsp; I tried this but it did not work.&amp;nbsp; I really wish it were that easy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I have removed all of the these and replaced them with dijit.form.MultiSelect.&amp;nbsp; It is uglier but they seem to work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all who tried to help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 11:26:12 GMT</pubDate>
    <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
    <dc:date>2014-08-01T11:26:12Z</dc:date>
    <item>
      <title>Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38439#M3240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am creating a simple application where I am going to have a lot of different dropdown type boxes.&amp;nbsp; I really like the dojox/form/CheckedMultiSelect.&amp;nbsp; However, I am having an issue when trying to load the contents of it from a .js file.&amp;nbsp; I've attached my test file and the js file.&amp;nbsp; It seems to be working okay in IE but is not working in Safari or Chrome.&amp;nbsp; I have no idea why?&amp;nbsp; As you can see from my code the dojox/form/CheckedMultiSelect seems to work in Safari and Chrome.&amp;nbsp; It only seems to be an issue when I am trying to populate it via the .js code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated as this is very frustrating and I have been working on this for a few days now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 13:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38439#M3240</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-23T13:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38440#M3241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats a really interesting problem, the problem is chrome is not able to find the element by the ID, you might be better off putting the Real_Estate_Filters2.js file contents into the javascript secton of your code (tried this, and it worked), and then have a JSON file that you load all the options from. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 13:36:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38440#M3241</guid>
      <dc:creator>LucasDorrough</dc:creator>
      <dc:date>2014-07-23T13:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38441#M3242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response but that could make the code extremely long.&amp;nbsp; For instance we have over 60 Districts.&amp;nbsp; I would rather not have all of those listed in the html file if I can help it..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 15:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38441#M3242</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-23T15:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38442#M3243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need to store all of them in the HTML file. Do some research on using modules in Dojo (&lt;A href="http://dojotoolkit.org/documentation/tutorials/1.9/modules/"&gt;here&lt;/A&gt; is a starting tutorial) where you can store the District information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look back at an old &lt;A _jive_internal="true" href="https://community.esri.com/message/370372?sr=search&amp;amp;searchId=68c84767-387c-490d-a326-bbde4afef2bc&amp;amp;searchIndex=0#370372"&gt;discussion&lt;/A&gt; of yours that uses bookmarks stored in a module. You can use the District information in a data store to populate the CheckedMultiSelection form, like in this &lt;A _jive_internal="true" href="https://community.esri.com/thread/44107"&gt;example&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 16:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38442#M3243</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-07-23T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38443#M3244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the responses.&amp;nbsp; When I turned parseOnLoad: from true to false I could see my values now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;script type='text/javascript' src='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/dojo.js" rel="nofollow" target="_blank"&gt;http://archive.dojotoolkit.org/nightly/dojotoolkit/dojo/dojo.js&lt;/A&gt;&lt;SPAN&gt;' data-dojo-config="has:{'dojo-firebug':true}, parseOnLoad:&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;false&lt;/STRONG&gt;&lt;/SPAN&gt;, async:true"&amp;gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the boxes don't look normal I have no idea what the parse does but feel it is very important.&amp;nbsp; Not sure the order of how to load things but it seems like I should do this after putting these values into the CheckedMultiSelect.&amp;nbsp; However, I thought that was one of the first things I was doing using this line of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;script type="text/javascript" src="jsfiles/Real_Estate_Filters2.js"&amp;gt;&amp;lt;/script&amp;gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 17:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38443#M3244</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-23T17:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38444#M3245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ken.&amp;nbsp; I know about AMD and only used the legacy because it was just the quickest way to get the code out there for you guys to view.&amp;nbsp; I looked at the bookmark example but because it is a widget vs a CheckedMultiSelect box I'm not sure how to equate one to the other.&amp;nbsp; Your eample shows me how to do it all in the one html file but I really want to seperate out the values just like the bookmarks.&amp;nbsp; I have a feeling it would take you like 5 minutes to whip up an example like this.&amp;nbsp; You seem to be a guru at this stuff.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 17:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38444#M3245</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-23T17:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38445#M3246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasnt saying to put all the districts in the HTML file, Those would go in a JSON file seperate from the HTML file. That way you still have the seperation of your files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is probably a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached a copy that hammered out, needs to be ran though IIS or apache because of chromes orgin rules. Not very efficent code because it does the request syncronously, but I just wanted to show what I was meaning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 18:11:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38445#M3246</guid>
      <dc:creator>LucasDorrough</dc:creator>
      <dc:date>2014-07-23T18:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38446#M3247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lucas:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for helping and taking the time out of your schedule to try and help me.&amp;nbsp; I download your zip file and tried it but it still does not work.&amp;nbsp; I put the files in the same folder and tried to run them.&amp;nbsp; The only place in your code where you reference the json file is below.&amp;nbsp; Should I have put it someplace else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xhr("Region_Filters.json", {&lt;/P&gt;&lt;P&gt;&amp;nbsp; handleAs: "Json",&lt;/P&gt;&lt;P&gt;&amp;nbsp; sync: "true"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }).then(lang.hitch(document, function(data){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Region_List = JSON.parse(data);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; console.log(Region_List);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var sel = document.getElementById("Region_filter");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; for (var i=0;i&amp;lt;Region_List.length;i++) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sel.options&lt;I&gt;=new Option(Region_List&lt;I&gt;.text,Region_List&lt;I&gt;.val);&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 11:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38446#M3247</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-24T11:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38447#M3248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm thats odd, it was working when I sent it, did you use IIS or apache to host it on localhost or a test website? accessing a local file system is not possible due to same orgin policies on modern browsers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:42:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38447#M3248</guid>
      <dc:creator>LucasDorrough</dc:creator>
      <dc:date>2014-07-24T13:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38448#M3249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have IIS but I tested it using our webserver name.&amp;nbsp; If I can't use it from their it won't do me any good.&amp;nbsp; It is an intranet site.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 13:57:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38448#M3249</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-07-24T13:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38449#M3250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is a bit late in the game and hopefully not too obvious, but by setting up your dojoConfig var within a script tag of your html and setting up your packages, async and parseOnLOad options we've never had any issues:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14062210980854831" jivemacro_uid="_14062210980854831"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var path_location = location.pathname.replace(/\/[^/]+$/, "");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var dojoConfig = {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages : [{name: "agsjs", location: path_location + "/agsjs"},&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {name: "js", location: path_location + "/js"}],&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; async : true,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad : true&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 16:59:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38449#M3250</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2014-07-24T16:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38450#M3251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ahh Ive had trouble with some configurations and JSON, some servers have JSON turned off for some reason, sorry it could have been more help, I wish you good luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jul 2014 21:24:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38450#M3251</guid>
      <dc:creator>LucasDorrough</dc:creator>
      <dc:date>2014-07-24T21:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38451#M3252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David.&amp;nbsp; I tried this but it did not work.&amp;nbsp; I really wish it were that easy. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I have removed all of the these and replaced them with dijit.form.MultiSelect.&amp;nbsp; It is uglier but they seem to work fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to all who tried to help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 11:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38451#M3252</guid>
      <dc:creator>deleted-user-yA_w_FC9FKe5</dc:creator>
      <dc:date>2014-08-01T11:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript dojox/form/CheckedMultiSelect</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38452#M3253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Strange, Lucas's example worked for me in both FirsFox 31 and Chrome 36&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 13:01:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/javascript-dojox-form-checkedmultiselect/m-p/38452#M3253</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-08-01T13:01:18Z</dc:date>
    </item>
  </channel>
</rss>

