<?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 How to disable a hover mouse or information box function with Onclick in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-a-hover-mouse-or-information-box/m-p/312454#M28760</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering what syntax to use for an onclick button event to disable a hover mouse information tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this without any effect:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;div dojoType="dijit.form.Button" id="deactivate" iconClass="deactivateIcon" onClick="queryTask. deactivate(esri.tasks.QueryTask());"&amp;gt;Deactivate Mouse Hover&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rest of the code is taken from the hover mouse sample posted on the ESRI samples page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no problem creating onclick buttons to deactivate / disable navigation and draw tools, its the other functions, is '.deactivate' not correct for esri.tasks.QueryTask??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Feb 2011 10:24:11 GMT</pubDate>
    <dc:creator>AndrewGoh</dc:creator>
    <dc:date>2011-02-27T10:24:11Z</dc:date>
    <item>
      <title>How to disable a hover mouse or information box function with Onclick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-a-hover-mouse-or-information-box/m-p/312454#M28760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was wondering what syntax to use for an onclick button event to disable a hover mouse information tool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this without any effect:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;div dojoType="dijit.form.Button" id="deactivate" iconClass="deactivateIcon" onClick="queryTask. deactivate(esri.tasks.QueryTask());"&amp;gt;Deactivate Mouse Hover&amp;lt;/div&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The rest of the code is taken from the hover mouse sample posted on the ESRI samples page.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no problem creating onclick buttons to deactivate / disable navigation and draw tools, its the other functions, is '.deactivate' not correct for esri.tasks.QueryTask??&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Feb 2011 10:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-a-hover-mouse-or-information-box/m-p/312454#M28760</guid>
      <dc:creator>AndrewGoh</dc:creator>
      <dc:date>2011-02-27T10:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable a hover mouse or information box function with Onclick</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-a-hover-mouse-or-information-box/m-p/312455#M28761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you explain what a "hover mouse information tool" is?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what you've told us now, I'm assuming that you're trying to disconnect a function to a previously defined event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, say that you have this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var myHook = dojo.connect(myMap, "onSomeEvent", function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; doThis();
});&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice here that the dojo.connect is assigned to a variable..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now if you want doThis() to stop executing every onSomeEvent, do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;dojo.disconnect(myHook);&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 14:55:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-disable-a-hover-mouse-or-information-box/m-p/312455#M28761</guid>
      <dc:creator>DanielYim</dc:creator>
      <dc:date>2021-12-11T14:55:25Z</dc:date>
    </item>
  </channel>
</rss>

