<?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: Why won't my button display after query is run? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100778#M9266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Visibility is spelled wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14363041774506912 jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14363041774506912"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;document.getElementById(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"btnRelatedSigns"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;).style.&lt;STRONG&gt;visiblity&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jul 2015 21:23:06 GMT</pubDate>
    <dc:creator>SteveCole</dc:creator>
    <dc:date>2015-07-07T21:23:06Z</dc:date>
    <item>
      <title>Why won't my button display after query is run?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100777#M9265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a button that is hidden on a form. The form is for sign supports. If there is more than related sign, my button should display, but it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an excerpt of the code-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTML: &lt;/P&gt;&lt;P&gt; &amp;lt;button id="btnRelatedSigns" type="button" style="visibility:hidden"&amp;gt;Signs&amp;lt;/button&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JavaScript:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;// display number of related records in console
&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; queryTask.executeForCount(query, function (count) {
&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; console.log(count);
&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; if (count &amp;gt;= 1) {
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("btnRelatedSigns").style.visiblity = "visible";
&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; } else {
&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;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.getElementById("btnRelatedSigns").style.visiblity = "hidden";
&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;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; })&lt;/PRE&gt;&lt;P&gt;The code counts the related signs just fine, but does not display the button as visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my project on github with the version related to this question: &lt;A href="https://github.com/csergent45/streetSigns/tree/e8bd20b75864c14e4df56589e4f9baa03db5c053" title="https://github.com/csergent45/streetSigns/tree/e8bd20b75864c14e4df56589e4f9baa03db5c053" rel="nofollow noopener noreferrer" target="_blank"&gt;csergent45/streetSigns at e8bd20b75864c14e4df56589e4f9baa03db5c053 · GitHub&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 06:14:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100777#M9265</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2021-12-11T06:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my button display after query is run?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100778#M9266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Visibility is spelled wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14363041774506912 jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14363041774506912"&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;document.getElementById(&lt;/SPAN&gt;&lt;SPAN class="string" style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: blue;"&gt;"btnRelatedSigns"&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; font-family: Consolas, 'Courier New', Courier, mono, serif; color: #000000;"&gt;).style.&lt;STRONG&gt;visiblity&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100778#M9266</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2015-07-07T21:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my button display after query is run?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100779#M9267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, those were easy points. I kept looking for typos and kept missing it. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:26:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100779#M9267</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-07-07T21:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my button display after query is run?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100780#M9268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is something very common in javascript. I spend somethings hours finally to know there was a spelling mistake.&lt;/P&gt;&lt;P&gt;Does anyone know if there is a way to ensure all the spellings are correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:26:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100780#M9268</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2015-07-07T21:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my button display after query is run?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100781#M9269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can copy your HTML into a word processing document and it will catch typos, but it will also think that your variable are typos. If you don't have a word processing tool, you could use something like this: &lt;A href="http://www.javascriptspellcheck.com/" title="http://www.javascriptspellcheck.com/"&gt;JavaScript Spell Check&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-won-t-my-button-display-after-query-is-run/m-p/100781#M9269</guid>
      <dc:creator>ChrisSergent</dc:creator>
      <dc:date>2015-07-07T21:31:48Z</dc:date>
    </item>
  </channel>
</rss>

