<?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: graphics from parent window do not display in child window in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56342#M4953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not exactly, I just ended up re-running my query and creating the graphics independently in the new page.&amp;nbsp; I passed only the extent using window.opener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 12:17:05 GMT</pubDate>
    <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
    <dc:date>2013-02-05T12:17:05Z</dc:date>
    <item>
      <title>graphics from parent window do not display in child window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56339#M4950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I posted this question on StackOverflow but did not get any response, maybe someone here can help? Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My webapp allows the user to zoom to a map extent, then create a new window with a new map drawn to the zoomed extent of the parent window map. The parent map contains graphics, which should also be passed and added to the child window map. My problem is that the graphics do not draw in the child window until I refresh the page. Once I manually refresh, all the graphics are there in the right place. I have tried various ways of forcing a refresh of the map or layer using javascript but nothing has worked. Also, when I refresh the child page, the graphics disappear from the parent page. If anyone has ideas I would appreciate it, thanks. Code below (note, this code is for the child window, 'window.opener' refers to the parent window):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
 function drawCrosswalks()&amp;nbsp;&amp;nbsp; 
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; updateLayerVisibility();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var locCrosswalkArray = [];
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i=0, l=window.opener.globalCrosswalkArray.length; i&amp;lt;l; i++)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; locCrosswalkArray&lt;I&gt; = window.opener.globalCrosswalkArray&lt;I&gt;;;
&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; // globalCrosswalkArray is a graphics array from the parent page)
&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; if (locCrosswalkArray.length &amp;gt; 0) 
&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; for (var i = 0, il = window.opener.globalCrosswalkArray.length; i &amp;lt; il; i++) 
&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; var symbol;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; crossWalkG =&amp;nbsp; window.opener.globalCrosswalkArray&lt;I&gt;.feature;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; symbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
&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; new dojo.Color([50, 205, 50]), 3), new dojo.Color([0, 0, 255, 0])); 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; crossWalkG.setSymbol(symbol);&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; printMap.graphics.add(crossWalkG);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }

&amp;nbsp;&amp;nbsp;&amp;nbsp; } // end if

&amp;nbsp;&amp;nbsp;&amp;nbsp; printMap.resize();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; printMap.setExtent(printMap.extent) ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; schoolSafetyLayer.refresh(); // none of this worked

 } // end func

&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The child window is created from the parent with this code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
\function printWindow()
 {
&amp;nbsp; newWindow = window.open ("blank.html");
&amp;nbsp; if(newWindow.pageLoadStatus==true) {
&amp;nbsp;&amp;nbsp; console.log("true"); }

&amp;nbsp; printXMax = map.extent.xmax;
&amp;nbsp; printXMin = map.extent.xmin;
&amp;nbsp; printYMax = map.extent.ymax;
&amp;nbsp; printYMin = map.extent.ymin;
&amp;nbsp; 
 }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 19:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56339#M4950</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-12-07T19:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: graphics from parent window do not display in child window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56340#M4951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I still haven't found a solution for this...am thinking I may need to use a deferred callback? Any ideas would be appreciated, thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 13:51:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56340#M4951</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2012-12-18T13:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: graphics from parent window do not display in child window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56341#M4952</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;BR /&gt;&lt;SPAN&gt;I also having the same requirement. did you get any solution? if yes, please share it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Uday&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Feb 2013 08:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56341#M4952</guid>
      <dc:creator>Udaya_BhaskerCheerala</dc:creator>
      <dc:date>2013-02-02T08:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: graphics from parent window do not display in child window</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56342#M4953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not exactly, I just ended up re-running my query and creating the graphics independently in the new page.&amp;nbsp; I passed only the extent using window.opener.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 12:17:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/graphics-from-parent-window-do-not-display-in/m-p/56342#M4953</guid>
      <dc:creator>deleted-user-ugCMpXci8bn5</dc:creator>
      <dc:date>2013-02-05T12:17:05Z</dc:date>
    </item>
  </channel>
</rss>

