<?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 Using AGSJS TOC with ArcGIS Javascript 3.0 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601658#M56298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been using the Table of Contents widget from &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://code.google.com/p/gmaps-utility-gis/" rel="nofollow" target="_blank"&gt;https://code.google.com/p/gmaps-utility-gis&lt;/A&gt;&lt;SPAN&gt;/&amp;nbsp; with ArcGIS Javasript API 2.8 but wanted to update my API to 3.0 and have not had luck doing so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not clear on how to migrate to 3.0 even after reading the documention.&amp;nbsp;&amp;nbsp;&amp;nbsp; I did update my dojoconfig to use the "packages" property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojoConfig = { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages: [{ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "agsjs", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/build/agsjs" rel="nofollow" target="_blank"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/build/agsjs&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when using dojo.require("agsjs.dijit.TOC");&amp;nbsp; the table of contents does not load and the rest of my page does not load either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone been able to use this Table of Contents widget with 3.0?&amp;nbsp;&amp;nbsp;&amp;nbsp; If so,&amp;nbsp; can you provide instructions on how you got it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 17:39:17 GMT</pubDate>
    <dc:creator>MeleKoneya</dc:creator>
    <dc:date>2012-06-21T17:39:17Z</dc:date>
    <item>
      <title>Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601658#M56298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been using the Table of Contents widget from &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://code.google.com/p/gmaps-utility-gis/" rel="nofollow" target="_blank"&gt;https://code.google.com/p/gmaps-utility-gis&lt;/A&gt;&lt;SPAN&gt;/&amp;nbsp; with ArcGIS Javasript API 2.8 but wanted to update my API to 3.0 and have not had luck doing so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not clear on how to migrate to 3.0 even after reading the documention.&amp;nbsp;&amp;nbsp;&amp;nbsp; I did update my dojoconfig to use the "packages" property.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojoConfig = { &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages: [{ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "agsjs", &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; location: "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/build/agsjs" rel="nofollow" target="_blank"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.07/build/agsjs&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when using dojo.require("agsjs.dijit.TOC");&amp;nbsp; the table of contents does not load and the rest of my page does not load either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone been able to use this Table of Contents widget with 3.0?&amp;nbsp;&amp;nbsp;&amp;nbsp; If so,&amp;nbsp; can you provide instructions on how you got it to work?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 17:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601658#M56298</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2012-06-21T17:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601659#M56299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hej &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the same problem here. :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 11:01:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601659#M56299</guid>
      <dc:creator>JosephDaood</dc:creator>
      <dc:date>2012-06-25T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601660#M56300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The key is add &lt;/SPAN&gt;&lt;PRE class="plain" name="code"&gt;dojo.require("dojo.fx") &lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt;which is a module used inside the widget. Since dojo 1.7 many modules have to be explicitly loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you need to download the code to your server since 3.0. There are some issues with xdomain used in junction with dojo.require.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get the updated code and sample here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109" rel="nofollow" target="_blank"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 15:24:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601660#M56300</guid>
      <dc:creator>NianweiLiu</dc:creator>
      <dc:date>2012-07-18T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601661#M56301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for answering this forum post and providing instructions on how to use your dijit in the 3.0 api.&amp;nbsp;&amp;nbsp; I have downloaded the latest JS from the link you provided and followed your instructions and things are working in 3.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 18:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601661#M56301</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2012-07-18T18:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601662#M56302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seeing this thread made me have another go at this TOC - last time I was still learning about the JSAPI&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a code base that I use for many pages that all share the same main dynamic map service - the main page calls the script and passes an array of default visible layers, this is then test for in my code and actioned - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
function defaultvis(layer) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; visible = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp; var items = dojo.map(layer.layerInfos, function (info, index) {


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (contains(defaultlayers, info.name)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; visible.push(info.id);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.debug(info.name + "ative")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.debug(info.name)
&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; dynamicMapServiceLayer.setVisibleLayers(visible);
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine, but of course the TOC code doesn't pick up on the changed visibility and shows all layers unticked (the default state)&amp;nbsp; Any ideas how I should call a refresh or something of the TOC to get the boxes ticked?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks to the writer for a really nice TOC - it functions just as stated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:48:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601662#M56302</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2021-12-12T01:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601663#M56303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case anyone else ins interested I worked it out - I have an array that contains the names of my default sub-layers, called defaultlayers, it is a global variable&amp;nbsp; I then altered this part of the TOC.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; _createRootLayerTOC: function () {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var b = this.rootLayer;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!b._tocInfos) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var c = {};
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.forEach(b.layerInfos, function (d) {
&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; c["" + d.id] = d;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; console.debug(d)
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (contains(defaultlayers,d.name)) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d.visible = true;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; else {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d.visible = false;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

.....&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:48:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601663#M56303</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2021-12-12T01:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601664#M56304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;This works fine, but of course the TOC code doesn't pick up on the changed visibility and shows all layers unticked (the default state)&amp;nbsp; Any ideas how I should call a refresh or something of the TOC to get the boxes ticked?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The latest version (2.02) at &lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109"&gt;http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109&lt;/A&gt;&lt;SPAN&gt; will use the actual visibility of each layer if they are different than the settings in map service. You can also use the cross domain build without downloading it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 19:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601664#M56304</guid>
      <dc:creator>NianweiLiu</dc:creator>
      <dc:date>2012-07-23T19:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601665#M56305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have noticed that I have to reload my page in order to get the TOC to display.&amp;nbsp;&amp;nbsp;&amp;nbsp; I can see that the agsjs.dijit.TOC is created on the initial load of the page, but the results do not show up in my 'tocDiv'.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have also experienced this behavior on the internet example site &lt;/SPAN&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/examples/toc.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/examples/toc.html&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; on the initial load the TOC does not show, but if I refresh in IE8, it does.&amp;nbsp;&amp;nbsp;&amp;nbsp; Just wondering if there is a work around to address this behavior.&amp;nbsp;&amp;nbsp; Thanks,&amp;nbsp; Mele&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 20:29:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601665#M56305</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2012-07-24T20:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601666#M56306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have noticed that I have to reload my page in order to get the TOC to display.&amp;nbsp;&amp;nbsp;&amp;nbsp; I can see that the agsjs.dijit.TOC is created on the initial load of the page, but the results do not show up in my 'tocDiv'.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have also experienced this behavior on the internet example site &lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/examples/toc.html"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.02/examples/toc.html&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; on the initial load the TOC does not show, but if I refresh in IE8, it does.&amp;nbsp;&amp;nbsp;&amp;nbsp; Just wondering if there is a work around to address this behavior.&amp;nbsp;&amp;nbsp; Thanks,&amp;nbsp; Mele&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have exactly the same problem: when&amp;nbsp; you run my app in IE9 the fist time it works however after it rerun again TOC it is not displayed any more - same happen with &lt;/SPAN&gt;&lt;A href="http://gmaps-utility-gis.googlecode.com/svn-history/r354/trunk/agsjs/examples/toc.html"&gt;http://gmaps-utility-gis.googlecode.com/svn-history/r354/trunk/agsjs/examples/toc.html&lt;/A&gt;&lt;SPAN&gt;. I have tried to destroy dom and widjet itself - but it did not help. Is there any solution for it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 13:54:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601666#M56306</guid>
      <dc:creator>KhmelevskiyAndrey</dc:creator>
      <dc:date>2012-08-03T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601667#M56307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have exactly the same problem: when&amp;nbsp; you run my app in IE9 the fist time it works however after it rerun again TOC it is not displayed any more - same happen with &lt;A href="http://gmaps-utility-gis.googlecode.com/svn-history/r354/trunk/agsjs/examples/toc.html"&gt;http://gmaps-utility-gis.googlecode.com/svn-history/r354/trunk/agsjs/examples/toc.html&lt;/A&gt;. I have tried to destroy dom and widjet itself - but it did not help. Is there any solution for it?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;me too, I posted a new forum about that &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/63619-how-can-I-save-map-and-layers-settings-in-a-cookie?p=220155#post220155"&gt;http://forums.arcgis.com/threads/63619-how-can-I-save-map-and-layers-settings-in-a-cookie?p=220155#post220155&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like a bug in toc. Is there any work around to this problem ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 05:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601667#M56307</guid>
      <dc:creator>JosephDaood</dc:creator>
      <dc:date>2012-08-06T05:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601668#M56308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, I am having a similar problem.&amp;nbsp; I have tried to get the agsjs TOC working with the ArcGIS JavaScript 3.2 API, and it does not work.&amp;nbsp; I suspect there are issues with dojo 1.7.x here as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Too bad, because this looks like a really nice implementation of a TOC.&amp;nbsp; Something that is missing from the ArcGIS JavaScript API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Charlie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2012 18:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601668#M56308</guid>
      <dc:creator>DougCollins</dc:creator>
      <dc:date>2012-09-28T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601669#M56309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm not sure of the issue - I'm using the TOC code here &lt;/SPAN&gt;&lt;A href="http://maps2.eastdevon.gov.uk/mapping/assets/"&gt;http://maps2.eastdevon.gov.uk/mapping/assets/&lt;/A&gt;&lt;SPAN&gt; and it works fine in all browsers now (mine is slightly modified to take visible layers rather than default visibility - I did this before the core code was changed to do this)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ACM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Sep 2012 07:16:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601669#M56309</guid>
      <dc:creator>AdrianMarsden</dc:creator>
      <dc:date>2012-09-29T07:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601670#M56310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not sure of the issue - I'm using the TOC code here &lt;A href="http://maps2.eastdevon.gov.uk/mapping/assets/"&gt;http://maps2.eastdevon.gov.uk/mapping/assets/&lt;/A&gt; and it works fine in all browsers now (mine is slightly modified to take visible layers rather than default visibility - I did this before the core code was changed to do this)&lt;BR /&gt;&lt;BR /&gt;ACM&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi to all! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to install and configure dijit TOC locally but unfortunately the TOC doesn't appear. I looked at the source code you wrote (&lt;/SPAN&gt;&lt;A href="http://maps2.eastdevon.gov.uk/mapping/assets/"&gt;http://maps2.eastdevon.gov.uk/mapping/assets/&lt;/A&gt;&lt;SPAN&gt;) and I tryied to replicate the structure on my intranet server with the only result that the map is displayed but not the TOC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;I'm referencing the javascript API 3.2 (&amp;lt;script type="text/javascript" src="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2" rel="nofollow" target="_blank"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/script&amp;gt;) and configuring the packages in this way:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var djConfig = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; parseOnLoad: true,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; packages: [{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "name": "agsjs",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "location": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;local server IP&amp;gt;/agsjs/build/agsjs"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also referencing the package explicitly&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojo.fx");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("agsjs.dijit.TOC");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;without success... what's wrong? Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 05:10:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601670#M56310</guid>
      <dc:creator>SIT_AGSM_VERONA_SPAAGSM_VERONA</dc:creator>
      <dc:date>2012-10-11T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using AGSJS TOC with ArcGIS Javascript 3.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601671#M56311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am also using the Javascript API 3.2, and agsjs 2.03, and cannot get it to work. Does the agsjs files HAVE to be on the web server? I have tried putting them on my Sharepoint site and linking to them in the Javascript of the web application, as well as in a local directory for testing. I don't know, maybe there is an issue with the Javascript API v.3.2 and the agsjs, as well; but, what leads me to believe this is not the issue is that it does work fine when using the public link to agsjs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.03/xbuild/agsjs" rel="nofollow" target="_blank"&gt;http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/2.03/xbuild/agsjs&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another option to load a TOC in the Javascript API?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2013 20:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/using-agsjs-toc-with-arcgis-javascript-3-0/m-p/601671#M56311</guid>
      <dc:creator>BarryGuidry</dc:creator>
      <dc:date>2013-07-18T20:27:52Z</dc:date>
    </item>
  </channel>
</rss>

