<?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 dijit.Dialog onHide function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dijit-dialog-onhide-function/m-p/744309#M68859</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dialog dijit with id="aboutUs". I would like this to show when the application loads. The onHide event (first event) triggers another event (second event), as shown in the code below. I would like the second event to occur only after the initial load. If user opens up this diaolg again while using the application, the second event should not be triggered. To enable this, I included the "onHide" function only in the "init" function as shown below, but the second event is triggering any time I close the dialog. How do I fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function init(){
&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp; var dlg = dijit.byId("aboutUs")
&amp;nbsp;&amp;nbsp; dlg.show();
&amp;nbsp;&amp;nbsp; dojo.connect(dlg,"onHide",function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventStartAppSlide.fire({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type : 'slideUnit',
&amp;nbsp;&amp;nbsp;&amp;nbsp; data : "imgWrapperPullOut"
 });
&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp; ...
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 15:08:39 GMT</pubDate>
    <dc:creator>SamirGambhir</dc:creator>
    <dc:date>2012-11-21T15:08:39Z</dc:date>
    <item>
      <title>dijit.Dialog onHide function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dijit-dialog-onhide-function/m-p/744309#M68859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a dialog dijit with id="aboutUs". I would like this to show when the application loads. The onHide event (first event) triggers another event (second event), as shown in the code below. I would like the second event to occur only after the initial load. If user opens up this diaolg again while using the application, the second event should not be triggered. To enable this, I included the "onHide" function only in the "init" function as shown below, but the second event is triggering any time I close the dialog. How do I fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;function init(){
&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp; var dlg = dijit.byId("aboutUs")
&amp;nbsp;&amp;nbsp; dlg.show();
&amp;nbsp;&amp;nbsp; dojo.connect(dlg,"onHide",function() {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventStartAppSlide.fire({
&amp;nbsp;&amp;nbsp;&amp;nbsp; type : 'slideUnit',
&amp;nbsp;&amp;nbsp;&amp;nbsp; data : "imgWrapperPullOut"
 });
&amp;nbsp;&amp;nbsp; });
&amp;nbsp;&amp;nbsp; ...
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:08:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/dijit-dialog-onhide-function/m-p/744309#M68859</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2012-11-21T15:08:39Z</dc:date>
    </item>
  </channel>
</rss>

