<?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: Insert New Layer TOC widget not working in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222425#M20655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That application doesn't work correctly for folks outside your network because of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="http://webgisdevint1/arcgis/rest/services/Alex_Try/Layers/MapServer" rel="nofollow" target="_blank"&gt;http://webgisdevint1/arcgis/rest/services/Alex_Try/Layers/MapServer&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to help but can't replicate your workflow with this being broken from my point of view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2014 18:06:56 GMT</pubDate>
    <dc:creator>JonathanUihlein</dc:creator>
    <dc:date>2014-09-12T18:06:56Z</dc:date>
    <item>
      <title>Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222424#M20654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to understand why the "insert new layer" of the TOC widget does not work with my script. It seems like I hooked the buttons correctly using on(domByID) technic. Not quite sure why the "Insert New Layer of the TOC widget does not work in my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my &lt;A href="http://134.186.111.22/AG_Sandbox/layout-master/demos/Map-Widget-Panel-carousel-BasemapList-Legend.html"&gt;map.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/9923_Capture.PNG" style="width: 620px; height: 323px;" /&gt;&lt;/P&gt;&lt;P&gt;TOC widget is &lt;A href="http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/examples/toc.html"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 17:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222424#M20654</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-12T17:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222425#M20655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That application doesn't work correctly for folks outside your network because of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="http://webgisdevint1/arcgis/rest/services/Alex_Try/Layers/MapServer" rel="nofollow" target="_blank"&gt;http://webgisdevint1/arcgis/rest/services/Alex_Try/Layers/MapServer&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd love to help but can't replicate your workflow with this being broken from my point of view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222425#M20655</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-09-12T18:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222426#M20656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh let me fix that sorry that was on the test environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:09:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222426#M20656</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-12T18:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222427#M20657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright I added a public layer so the TOC would work. The Add layer is already public (ESRI's sample). Let me know if you can see the TOC now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 18:14:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222427#M20657</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-12T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222428#M20658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's still pointing to a local reference and failing to load for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;A class="jive-link-external-small" href="http://webgisdevext1/arcgis/rest/services/ResourceMgmt/WatershedMapper/MapServer" rel="nofollow" target="_blank"&gt;http://webgisdevext1/arcgis/rest/services/ResourceMgmt/WatershedMapper/MapServer&lt;/A&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;You can test this by going to &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://webgisdevext1" rel="nofollow" target="_blank"&gt;http://webgisdevext1&lt;/A&gt;&lt;SPAN&gt; on a device outside your network.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It will redirect to &lt;A href="http://www.webgisdevext1.com/" title="http://www.webgisdevext1.com/"&gt;http://www.webgisdevext1.com/&lt;/A&gt; which isn't doesn't look like your website &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 21:20:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222428#M20658</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-09-12T21:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222429#M20659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ha. Wrong environment again. Man this Friday is tough! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Well I finally decided to choose a random ESRI sample. So I am sure there is no mistake and can see the TOC in action. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 21:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222429#M20659</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-12T21:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222430#M20660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 21:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222430#M20660</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-12T21:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222431#M20661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;If it helps, this is my inference on why your button click event is not getting fired up. I still don't know how to get around this, but my view is you should not mix up two frameworks, at least at element level.&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_14107484611576997" jivemacro_uid="_14107484611576997"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $('.popover-markup&amp;gt;.trigger').popover({&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html: true,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title: function () {&lt;/P&gt;
&lt;P&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; return $(this).parent().find('.head').html();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content: function () {&lt;/P&gt;
&lt;P&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; return $(this).parent().find('.content').html();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; container: 'body',&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; placement: 'bottom'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above popover function is reading the content element (below) and attaching it to popover node created by bootstrap. As part of this process it's deleting the InsertNewLayer button from dom and inserting it back into the dom, Your button click event is attached from dojo before this process occurs and is not actually available when you click the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14107579955788522" jivemacro_uid="_14107579955788522"&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp; &amp;lt;div class="content hide"&amp;gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&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;lt;div class="form-group"&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp; &amp;lt;input id="NewLayerURL" size="110" type="text" class="form-control" value="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&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;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&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;lt;button id="InsertNewLayer" disabled="disabled" class="btn btn-default btn-block"&amp;gt;Add...&amp;lt;/button&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a test try replacing above node with below. This creates two InsertNewLayer button, click the larger one, it fires your click event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14107579311401354" jivemacro_uid="_14107579311401354"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div class="content"&amp;gt;&lt;/P&gt;
&lt;P&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;lt;div class="form-group"&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&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;&amp;nbsp;&amp;nbsp; &amp;lt;input id="NewLayerURL" size="110" type="text" class="form-control" value="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer&lt;/A&gt;&lt;SPAN&gt;"/&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&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;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&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;lt;button id="InsertNewLayer" disabled="disabled" class="btn btn-default btn-block" style="z-index:100000; position: absolute; top: 20px; left: 0px;"&amp;gt;Add...&amp;lt;/button&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 05:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222431#M20661</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-15T05:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222432#M20662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Riyas,&lt;/P&gt;&lt;P&gt;Thank you. It seems like your test work like a charm and your explanation was very clear. Should I not use bootstrap for this InserNewlayer function then? Is there something similar to popover in dojo that I could use?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 16:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222432#M20662</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-15T16:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222433#M20663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Glad it helped.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;No, you can still use bootstrap if you want, but you should hook the click event of your button after the popover is initialised, may be during show event. I'll try if i can hook these two events together, ll post back here if succeed in doing that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closest to popover in dojo is &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dijit/TooltipDialog.html" title="http://dojotoolkit.org/reference-guide/1.10/dijit/TooltipDialog.html"&gt;dijit/TooltipDialog — The Dojo Toolkit - Reference Guide&lt;/A&gt; , if you want to explore this option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 00:16:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222433#M20663</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-16T00:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222434#M20664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Managed to hook up the events, refer attached (delete.html).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what i have done.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Assigned a non-existent class insert-new-layer to the add button (just for accessing the buttons from dojo query)&lt;/LI&gt;&lt;LI&gt;Created a hookClick event with global scope, query elements with class insert-new-layer (you'll get two, one actual element on dom and the other one created by bootstrap) and attaching click event to both. &lt;/LI&gt;&lt;LI&gt;hook global hookClick function to bootstrap on popover show event&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 10:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222434#M20664</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-16T10:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222435#M20665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is quite amazing! It does trigger the "hook click" alert! Should I modify my insert new layer script so that it triggers the "add layer"?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I am very impressed, thank you again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 17:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222435#M20665</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-16T17:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222436#M20666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;Glad it helped!&lt;/P&gt;&lt;P&gt;Didn't quite get your question here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 00:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222436#M20666</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-17T00:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222437#M20667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your sample (that works perfectly) I do get the "Hook click" alert in window, but it still does not trigger the&amp;nbsp; function that allows me to insert a new layer. I cannot figure out why. It must be easy but I don't see what I am missing.&lt;/P&gt;&lt;P&gt;I also get a "Uncaught TypeError: undefined is not a function"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new map is &lt;A href="http://134.186.111.22/AG_Sandbox/layout-master/demos/Map-Widget-Panel-carousel-BasemapList-Legend.html"&gt;here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help and also the great work!&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 16:37:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222437#M20667</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-17T16:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222438#M20668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The order of your dependencies inside the require is wrong. You assign "dojo/query" to "Color" and "dojo/_base/Color" to query. They must match 1 to 1. This is talked about in the introductory documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 22:01:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222438#M20668</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-09-17T22:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222439#M20669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;As mentioned by jonathan, the error is coming out because of the wrong module name definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You map.addLayer is not scoped within the click event. Move this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;map.addLayer(dynaLayer2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to before &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var h = map.on('layer-add-result', function(evt){&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:40:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222439#M20669</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-18T12:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert New Layer TOC widget not working</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222440#M20670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help! I will reshape my code.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 16:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/insert-new-layer-toc-widget-not-working/m-p/222440#M20670</guid>
      <dc:creator>AlexGole</dc:creator>
      <dc:date>2014-09-18T16:50:43Z</dc:date>
    </item>
  </channel>
</rss>

