AnsweredAssumed Answered

Initialize HTML in PopupTemplate

Question asked by askewwa on Feb 5, 2015
Latest reply on Feb 5, 2015 by timw1984

I have a popupTemplate with an embedded HTML table.  I also have a dojo grid that I use to select and zoom to features.  The HTML table has to be accessed by the JavaScript in order to toggle the visibility of certain rows.  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.  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.  After clicking on a feature, the popup works fine from the grid.  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?  Any help is greatly appreciated.  Thanks.

Outcomes