<?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 Initialize HTML in PopupTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/initialize-html-in-popuptemplate/m-p/196468#M18193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a popupTemplate with an embedded HTML table.&amp;nbsp; I also have a dojo grid that I use to select and zoom to features.&amp;nbsp; The HTML table has to be accessed by the JavaScript in order to toggle the visibility of certain rows.&amp;nbsp; When selecting a feature from the grid, I am getting the error "dojo.byId(...) is null" from my function that toggles the table and the popup does not display for the selected feature.&amp;nbsp; It seems that the dom elements for the table are not initially being created and cannot be accessed until I click on a feature on the map.&amp;nbsp; After clicking on a feature, the popup works fine from the grid.&amp;nbsp; What could possible be causing this and Is there any way to access the dom elements in the popup before a feature on the map is clicked?&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 18:33:42 GMT</pubDate>
    <dc:creator>WesAskew</dc:creator>
    <dc:date>2015-02-05T18:33:42Z</dc:date>
    <item>
      <title>Initialize HTML in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/initialize-html-in-popuptemplate/m-p/196468#M18193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a popupTemplate with an embedded HTML table.&amp;nbsp; I also have a dojo grid that I use to select and zoom to features.&amp;nbsp; The HTML table has to be accessed by the JavaScript in order to toggle the visibility of certain rows.&amp;nbsp; When selecting a feature from the grid, I am getting the error "dojo.byId(...) is null" from my function that toggles the table and the popup does not display for the selected feature.&amp;nbsp; It seems that the dom elements for the table are not initially being created and cannot be accessed until I click on a feature on the map.&amp;nbsp; After clicking on a feature, the popup works fine from the grid.&amp;nbsp; What could possible be causing this and Is there any way to access the dom elements in the popup before a feature on the map is clicked?&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 18:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/initialize-html-in-popuptemplate/m-p/196468#M18193</guid>
      <dc:creator>WesAskew</dc:creator>
      <dc:date>2015-02-05T18:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Initialize HTML in PopupTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/initialize-html-in-popuptemplate/m-p/196469#M18194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Wesley,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A code snipped or a fiddle, would be great. It is tough to comment without seeing the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 18:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/initialize-html-in-popuptemplate/m-p/196469#M18194</guid>
      <dc:creator>TimWitt2</dc:creator>
      <dc:date>2015-02-05T18:36:39Z</dc:date>
    </item>
  </channel>
</rss>

