<?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: button to run code in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-to-run-code/m-p/516130#M48155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I want is a couple buttons on my page that will run each of the tools above.&amp;nbsp; But I dont want to have to click the button every time, rather click it once and that code will run on each click until the user selects the other tool.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to set a listener which enables each function when its button is clicked, and disables the other functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Feb 2014 21:33:35 GMT</pubDate>
    <dc:creator>StephenLead</dc:creator>
    <dc:date>2014-02-16T21:33:35Z</dc:date>
    <item>
      <title>button to run code</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-to-run-code/m-p/516129#M48154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been testing some examples from Java Script api help...Right now I have two different HTML pages and each is doing something different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; On a user click in the map it buffers an area and then uses that buffer to select records and return to a table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I have an editor that on click in the map it selects the feature and brings up the edit window to edit attributes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want is a couple buttons on my page that will run each of the tools above.&amp;nbsp; But I dont want to have to click the button every time, rather click it once and that code will run on each click until the user selects the other tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts or examples?&amp;nbsp; Do I have to encapsulate each tools code in a Function and then have some sort of on button click for each button that runs the JS code?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How would I keep that code running until another tool is selected?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 19:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-to-run-code/m-p/516129#M48154</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-02-14T19:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: button to run code</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-to-run-code/m-p/516130#M48155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What I want is a couple buttons on my page that will run each of the tools above.&amp;nbsp; But I dont want to have to click the button every time, rather click it once and that code will run on each click until the user selects the other tool.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to set a listener which enables each function when its button is clicked, and disables the other functionality.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 21:33:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/button-to-run-code/m-p/516130#M48155</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2014-02-16T21:33:35Z</dc:date>
    </item>
  </channel>
</rss>

