<?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 window.showModalDialog() not working with ArcGIS Online templates in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-showmodaldialog-not-working-with-arcgis/m-p/566969#M52904</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Basic Viewer template from ArcGIS Online as the core of my project. The template by itself saves me weeks of work as compared to create the beautiful user interface by myself. However when I try to integrate my project with my main application, I find out the application will not work if I use &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; to show the Basic Viewer page (index.html). I cannot even get the basic map to show up!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for my own investigation, I realize that &lt;/SPAN&gt;&lt;STRONG&gt;window.open()&lt;/STRONG&gt;&lt;SPAN&gt; works ok. However I need to use &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; in order to make call backs to the parent page once the user selects something my customized graphic layer. Our main application is currently confined to Internet Explorer only so &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; lack of cross browser support is not an issue for us. In fact it is being used all over the place in there. It will not be possible to use &lt;/SPAN&gt;&lt;STRONG&gt;dojo&lt;/STRONG&gt;&lt;SPAN&gt; in the main application at this moment. If &lt;/SPAN&gt;&lt;STRONG&gt;dojo&lt;/STRONG&gt;&lt;SPAN&gt; is the only way to accomplish this modal/callback thing, I need to know why so I can explain to my management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using an intermediate page with iFrame seems to solve the problem but I am hoping I can use the main index.html directly. That will simplify my code when I have to deal with parameters and callbacks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My call looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
window.showModalDialog("index.html","","dialogWidth:1000px;dialogHeight:700px;help:no;resizable:yes;scroll:no;status:yes;");
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached my original Basic Viewer project where I added the &lt;/SPAN&gt;&lt;STRONG&gt;popup.html&lt;/STRONG&gt;&lt;SPAN&gt; which have the code mentioned above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 19:22:29 GMT</pubDate>
    <dc:creator>HubertLo</dc:creator>
    <dc:date>2012-10-16T19:22:29Z</dc:date>
    <item>
      <title>window.showModalDialog() not working with ArcGIS Online templates</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-showmodaldialog-not-working-with-arcgis/m-p/566969#M52904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the Basic Viewer template from ArcGIS Online as the core of my project. The template by itself saves me weeks of work as compared to create the beautiful user interface by myself. However when I try to integrate my project with my main application, I find out the application will not work if I use &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; to show the Basic Viewer page (index.html). I cannot even get the basic map to show up!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for my own investigation, I realize that &lt;/SPAN&gt;&lt;STRONG&gt;window.open()&lt;/STRONG&gt;&lt;SPAN&gt; works ok. However I need to use &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; in order to make call backs to the parent page once the user selects something my customized graphic layer. Our main application is currently confined to Internet Explorer only so &lt;/SPAN&gt;&lt;STRONG&gt;window.showModalDialog()&lt;/STRONG&gt;&lt;SPAN&gt; lack of cross browser support is not an issue for us. In fact it is being used all over the place in there. It will not be possible to use &lt;/SPAN&gt;&lt;STRONG&gt;dojo&lt;/STRONG&gt;&lt;SPAN&gt; in the main application at this moment. If &lt;/SPAN&gt;&lt;STRONG&gt;dojo&lt;/STRONG&gt;&lt;SPAN&gt; is the only way to accomplish this modal/callback thing, I need to know why so I can explain to my management.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using an intermediate page with iFrame seems to solve the problem but I am hoping I can use the main index.html directly. That will simplify my code when I have to deal with parameters and callbacks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My call looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
window.showModalDialog("index.html","","dialogWidth:1000px;dialogHeight:700px;help:no;resizable:yes;scroll:no;status:yes;");
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have attached my original Basic Viewer project where I added the &lt;/SPAN&gt;&lt;STRONG&gt;popup.html&lt;/STRONG&gt;&lt;SPAN&gt; which have the code mentioned above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please advise.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 19:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/window-showmodaldialog-not-working-with-arcgis/m-p/566969#M52904</guid>
      <dc:creator>HubertLo</dc:creator>
      <dc:date>2012-10-16T19:22:29Z</dc:date>
    </item>
  </channel>
</rss>

