<?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: Dojo Dialog Question in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26807#M2304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; Trying to get the Floating Pane to work but not having any luck.&amp;nbsp; All I am trying to do is have a legend show up when the user clicks a button.&amp;nbsp; Here is what I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My button:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14146044289613192 jive_text_macro" jivemacro_uid="_14146044289613192"&gt;
&lt;P&gt;&amp;lt;button id="openLegend" dojotype="dijit.form.Button" onClick="openLegend();"&amp;gt;Show Legend&amp;lt;div dojoType="dojox.layout.Dock" id="dock"&amp;nbsp; &amp;gt;&amp;lt;/div&amp;gt; &amp;lt;/button&amp;gt; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FloatingPane HTML within my map panel div (which is the center region in border container):&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146045284618825" jivemacro_uid="_14146045284618825"&gt;
&lt;P&gt;&amp;lt;div id="floatingLegend" dojoType="dojox.layout.FloatingPane" title='Legend' dockTo="dock" style="visibility:hidden;" closable="false" resizable="true" dockable="true"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;div id="legendDiv"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;And the function I am using to show the pane, essentially changing is visibility:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14146046081415127 jive_text_macro" jivemacro_uid="_14146046081415127"&gt;
&lt;P&gt;function openLegend() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var lp = dijit.byId('floatingLegend'); &lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (lp.style = "visibility: hidden;")&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lp.style.visibility="visible";&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lp.show();&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; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; } &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;CSS:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146048357092114" jivemacro_uid="_14146048357092114"&gt;
&lt;P&gt;#floatingLegend {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position: absolute;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; top: 100px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; left: 175px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 260px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 140px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index: 99;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;#dock {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position:absolute;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-style:hidden;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index: 99;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; top: 28px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; right: 330px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 0px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 0px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-family: Arial, Helvetica, sans-serif;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-size: 12pt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility:hidden;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:none;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;} &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Right now, when I click my button, I get an error saying, "object is not a function".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to why this isn't working for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 17:47:26 GMT</pubDate>
    <dc:creator>RyanSellman</dc:creator>
    <dc:date>2014-10-29T17:47:26Z</dc:date>
    <item>
      <title>Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26805#M2302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a problem with the Dialog dijit.&amp;nbsp;&amp;nbsp; I want to be able to show a Dialog box (or something similar) while giving the user the ability to use the map/application while the Dialog box is open.&amp;nbsp; Right now, I have a button that opens a Dialog box, but the application behind the box becomes inactive.&amp;nbsp; I don't know if this is even possible with the dialog dijit - I assume it is.&amp;nbsp; Does anyone know what I am missing or have an alternative recommendation to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ryan &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 15:55:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26805#M2302</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-10-29T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26806#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; By default the dialog dijit is modal but you can add some css to hide the underlay.&lt;/P&gt;&lt;P&gt;Javascript:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&amp;nbsp; var d = new Dialog({
&amp;nbsp; 'title':'I am nonmodal',
&amp;nbsp; 'class':'nonModal'
&amp;nbsp; });&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;css:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;.nonModal_underlay {
&amp;nbsp; display:none
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or just use a Floating Pane instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26806#M2303</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T21:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26807#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response.&amp;nbsp; Trying to get the Floating Pane to work but not having any luck.&amp;nbsp; All I am trying to do is have a legend show up when the user clicks a button.&amp;nbsp; Here is what I have so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My button:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14146044289613192 jive_text_macro" jivemacro_uid="_14146044289613192"&gt;
&lt;P&gt;&amp;lt;button id="openLegend" dojotype="dijit.form.Button" onClick="openLegend();"&amp;gt;Show Legend&amp;lt;div dojoType="dojox.layout.Dock" id="dock"&amp;nbsp; &amp;gt;&amp;lt;/div&amp;gt; &amp;lt;/button&amp;gt; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FloatingPane HTML within my map panel div (which is the center region in border container):&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146045284618825" jivemacro_uid="_14146045284618825"&gt;
&lt;P&gt;&amp;lt;div id="floatingLegend" dojoType="dojox.layout.FloatingPane" title='Legend' dockTo="dock" style="visibility:hidden;" closable="false" resizable="true" dockable="true"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;div id="legendDiv"&amp;gt;&amp;lt;/div&amp;gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/div&amp;gt; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;And the function I am using to show the pane, essentially changing is visibility:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14146046081415127 jive_text_macro" jivemacro_uid="_14146046081415127"&gt;
&lt;P&gt;function openLegend() {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var lp = dijit.byId('floatingLegend'); &lt;/P&gt;
&lt;P&gt;&amp;nbsp; if (lp.style = "visibility: hidden;")&amp;nbsp; {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lp.style.visibility="visible";&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; lp.show();&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; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; } &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;CSS:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14146048357092114" jivemacro_uid="_14146048357092114"&gt;
&lt;P&gt;#floatingLegend {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position: absolute;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; top: 100px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; left: 175px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 260px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 140px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index: 99;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp; }&amp;nbsp; &lt;/P&gt;
&lt;P&gt;#dock {&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; position:absolute;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; border-style:hidden;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index: 99;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; top: 28px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; right: 330px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; height: 0px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; width: 0px;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-family: Arial, Helvetica, sans-serif;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; font-size: 12pt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; visibility:hidden;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:none;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;} &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;Right now, when I click my button, I get an error saying, "object is not a function".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to why this isn't working for me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:47:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26807#M2304</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-10-29T17:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26808#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where is that error coming from? It may be easier if you can share your whole code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 17:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26808#M2305</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-29T17:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26809#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its not pretty, but here is the the app in jsfiddle:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://jsfiddle.net/rcsellman/819ugpku/"&gt;Edit fiddle - JSFiddle &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 18:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26809#M2306</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-10-29T18:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26810#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Well there was a few issue like using legacy naming in your dijit type "dijit.form.Button" vs "dijit/form/Button" and trying to have the onClick attribute on the button which made openLegend function out of scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the working &lt;A href="http://jsfiddle.net/rscheitlin/819ugpku/1/"&gt;Fiddle&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:02:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26810#M2307</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2014-10-29T19:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dojo Dialog Question</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26811#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 19:09:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dojo-dialog-question/m-p/26811#M2308</guid>
      <dc:creator>RyanSellman</dc:creator>
      <dc:date>2014-10-29T19:09:05Z</dc:date>
    </item>
  </channel>
</rss>

