<?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: Difficulty refreshing content pane in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611450#M57188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The refresh() method reloads the "href" property of the content pane. In your example you do not have the "href" property set so it loads the base url of the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reset the content you need to use &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dijit.byId('myContnetPane').set('content', 'THE ORGINAL MARKUP')&lt;/PRE&gt;&lt;SPAN&gt; like you did on your gp result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 15:24:42 GMT</pubDate>
    <dc:creator>BenFousek</dc:creator>
    <dc:date>2013-06-26T15:24:42Z</dc:date>
    <item>
      <title>Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611444#M57182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have several content panes within a document.&amp;nbsp; I have a function which I want to refresh just one of the content panes.&amp;nbsp; The function is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
function ResetContent(){
 dijit.byId("DijitID").refresh();
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For some reason this puts all of the content of the entire document into this particular content pane, rather than refreshing the content pane to what it originally looked like.&amp;nbsp; How can I change this function so the content pane refreshes and displays just the same as when I refresh the entire web page?&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2013 21:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611444#M57182</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2013-06-21T21:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611445#M57183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide more code for context? I will try to help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 21:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611445#M57183</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-06-25T21:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611446#M57184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you provide more code for context? I will try to help.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is where I create the content pane:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;div dojoType="dijit.layout.ContentPane" title="Biotics Data Subset" id="DijitID1"&amp;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;lt;span style="padding:10px 0;"&amp;gt;Select REACCH Data to view information&amp;lt;/span&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="toggle" name= "formName2" style="padding: 2px 2px;"&amp;gt;



&amp;lt;form name="formName2"&amp;gt;
 Select Biotics Layer: &amp;lt;br&amp;gt;
&amp;lt;select name="options1e" id= "options1e" onChange="updatefields1(this.selectedIndex)"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option selected&amp;gt;Select Layer&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Earthworm"&amp;gt;Earthworm&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Hessian Fly"&amp;gt;Hessian Fly&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Pan Trap"&amp;gt;Pan Trap&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="RLN"&amp;gt;RLN&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Seed"&amp;gt;Seed&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Suction Trap"&amp;gt;Suction Trap&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Sweep Net"&amp;gt;Sweep Net&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Wireworm"&amp;gt;Wireworm&amp;lt;/option&amp;gt;

&amp;lt;/select&amp;gt;&amp;lt;br&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Field: &amp;lt;br&amp;gt;
&amp;lt;select name="options2e" id="options2e" &amp;gt;
onClick="alert(this.options[this.options.selectedIndex].value)"&amp;gt;

&amp;lt;/select&amp;gt;&amp;lt;br&amp;gt;
 Field is less than, greater than, or equal to:
&amp;lt;select id="options3e" &amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Less Than"&amp;gt;Less Than&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Greater Than"&amp;gt;Greater Than&amp;lt;/option&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="Equal To"&amp;gt;Equal To&amp;lt;/option&amp;gt;


&amp;lt;/select&amp;gt;&amp;lt;br&amp;gt;
 Enter Quantity:&amp;lt;br&amp;gt;
&amp;lt;input type="text" name="Quantity" id= "options4e" &amp;gt;&amp;lt;br&amp;gt;


&amp;lt;br&amp;gt; &amp;lt;button dojoType="dijit.form.Button"&amp;nbsp; onClick="executeGP();"&amp;gt;Extract Data&amp;lt;/button&amp;gt;


&amp;lt;/form&amp;gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then when the executeGP succeeds it goes to this function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function onTaskResultComplete(paramResult) {
 var featureSet = paramResult.value.url;


dijit.byId("DijitID1").setContent(
&amp;nbsp; "Biotics Layer: "+bioticsLayer+"&amp;lt;br&amp;gt;"+
 "Biotics Field: "+bioticsField+" is "+sign+" "+quantity+"&amp;lt;br&amp;gt;"+
 "&amp;lt;br&amp;gt;&amp;lt;a href=" + featureSet + "&amp;gt;Click here to download the data&amp;lt;/a&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;"+
 '&amp;lt;form&amp;gt;&amp;lt;button dojoType="dijit.form.Button"&amp;nbsp; onClick="ResetContent()"&amp;gt;Refresh&amp;lt;/button&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/form&amp;gt;');&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then I click on the refresh button, which goes to this function:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function ResetContent(){
dijit.byId('DijitID1').refresh();
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt; But instead of just refreshing the content pane to its original content, it inserts the contents of all the content panes in the entire html document into this content pane.&amp;nbsp; I also am getting these errors in the console box:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error parsing in _ContentSetter#Setter_DijitID1_3 Error {} &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error undefined running custom onLoad code: This deferred has already been resolved &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have any solutions.&amp;nbsp; Thank you very much!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:09:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611446#M57184</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2021-12-12T02:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611447#M57185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the update!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://strickspage.com/extending-dijit-dialog-with-a-templated-widget-containing-widgets/"&gt;http://strickspage.com/extending-dijit-dialog-with-a-templated-widget-containing-widgets/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your error might have to do with parseOnLoad (or rather, &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;when&lt;/SPAN&gt;&lt;SPAN&gt; the parsing is done).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this post does not help, I would need to see more code; I don't see the source of your error in the code you've provided.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 22:11:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611447#M57185</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-06-25T22:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611448#M57186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you for the update!&lt;BR /&gt;&lt;BR /&gt;Take a look at this: &lt;BR /&gt;&lt;A href="http://strickspage.com/extending-dijit-dialog-with-a-templated-widget-containing-widgets/"&gt;http://strickspage.com/extending-dijit-dialog-with-a-templated-widget-containing-widgets/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Your error might have to do with parseOnLoad (or rather, &lt;SPAN style="font-style:italic;"&gt;when&lt;/SPAN&gt; the parsing is done).&lt;BR /&gt;&lt;BR /&gt;If this post does not help, I would need to see more code; I don't see the source of your error in the code you've provided.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hey thanks for the link.&amp;nbsp; Unfortunately I can't make much sense of this example.&amp;nbsp; Sorry I am still learning javascript. I am not using dijit.Dialog.&amp;nbsp; Is there a particular part of my code that would be helpful?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 22:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611448#M57186</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2013-06-25T22:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611449#M57187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem Peter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you post the function that initializes and parses the document template? Also, post the BorderContainer that wraps your main ContentPane(s).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could always try to replicate the issue in a &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/"&gt;http://jsfiddle.net/&lt;/A&gt;&lt;SPAN&gt; and paste that link.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 14:41:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611449#M57187</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2013-06-26T14:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611450#M57188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The refresh() method reloads the "href" property of the content pane. In your example you do not have the "href" property set so it loads the base url of the application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To reset the content you need to use &lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dijit.byId('myContnetPane').set('content', 'THE ORGINAL MARKUP')&lt;/PRE&gt;&lt;SPAN&gt; like you did on your gp result.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 15:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611450#M57188</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2013-06-26T15:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611451#M57189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The refresh() method reloads the "href" property of the content pane. In your example you do not have the "href" property set so it loads the base url of the application.&lt;BR /&gt;&lt;BR /&gt;To reset the content you need to use &lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;dijit.byId('myContnetPane').set('content', 'THE ORGINAL MARKUP')&lt;/PRE&gt; like you did on your gp result.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you both so much for your help.&amp;nbsp; I was hoping I could avoid trying to recreate the entire form with the setContent method.&amp;nbsp; Is there some way that I could just reference the original content pane where you have written 'THE ORIGINAL MARKUP' and it will automatically reset?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2013 16:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611451#M57189</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2013-06-26T16:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611452#M57190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. Create a html file and call it &lt;/SPAN&gt;&lt;STRONG&gt;form.html&lt;/STRONG&gt;&lt;SPAN&gt; or whatever with just the code within the content pane.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Load the html in the content pane on load by setting href property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;div id="myContentPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="title:'My Form', preload:true, preventCache: true, href:'form.html'"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/div&amp;gt;[/HTML]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update the content by the method you are currently using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reset function would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function reset() {
&amp;nbsp;&amp;nbsp;&amp;nbsp; cp = dijit.byId('myContentPane')
&amp;nbsp;&amp;nbsp;&amp;nbsp; cp.set('href', 'form.html');
&amp;nbsp;&amp;nbsp;&amp;nbsp; cp.refresh(); //may or may not need to refresh
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think you can use the refresh() method once you have set the content to something else programmatically, however you may need to call refresh() after setting the href.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice I set preventCache to true, or else you will have to clear browser cache if you make changes to the html file. This is a good idea when in development. Once you deploy it can be removed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611452#M57190</guid>
      <dc:creator>BenFousek</dc:creator>
      <dc:date>2021-12-12T02:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Difficulty refreshing content pane</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611453#M57191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No problem Peter.&lt;BR /&gt;&lt;BR /&gt;Can you post the function that initializes and parses the document template? Also, post the BorderContainer that wraps your main ContentPane(s).&lt;BR /&gt;&lt;BR /&gt;You could always try to replicate the issue in a &lt;A href="http://jsfiddle.net/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://jsfiddle.net/&lt;/A&gt; and paste that link.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is where I initialize and parse the document:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&amp;gt; 
&amp;lt;html&amp;gt; 
&amp;nbsp; &amp;lt;head&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" /&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--The viewport meta tag is used to improve the presentation and behavior of the samples 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on iOS devices--&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Updating the legend to display visible layers&amp;lt;/title&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/dojo/dijit/themes/claro/claro.css"&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.2/js/esri/css/esri.css" /&amp;gt; 
 &amp;lt;style&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; html, body { height: 98%; width: 98%; margin: 0; padding: 5px; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #rightPane{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:30%;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #legendPane{
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; border: solid #97DCF2 1px;
&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;lt;/style&amp;gt; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt;var djConfig = {parseOnLoad: true};&amp;lt;/script&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.2"&amp;gt;&amp;lt;/script&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script type="text/javascript"&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.BorderContainer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.ContentPane");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.layout.AccordionContainer");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.map");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.dijit.Legend");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.arcgis.utils");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("dijit.form.CheckBox");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.dijit.OverviewMap");
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo.require("esri.dijit.Popup");&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code where I setup up the border container:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp; &amp;lt;body class="claro"&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="content" dojotype="dijit.layout.BorderContainer" design="headline" gutters="true" style="width: 100%; height: 100%; margin: 0;"&amp;gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div id="rightPane" dojotype="dijit.layout.ContentPane" region="right"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;div dojoType="dijit.layout.AccordionContainer"&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you would like to see anything else, or spot something I should change.&amp;nbsp; Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/difficulty-refreshing-content-pane/m-p/611453#M57191</guid>
      <dc:creator>StephenFricke</dc:creator>
      <dc:date>2021-12-12T02:09:23Z</dc:date>
    </item>
  </channel>
</rss>

