Initialize HTML in PopupTemplate

2871
1
02-05-2015 10:33 AM
WesAskew
New Contributor II

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.

0 Kudos
1 Reply
TimWitt2
MVP Alum

Hey Wesley,

A code snipped or a fiddle, would be great. It is tough to comment without seeing the code.

Tim