Popup window when closed its content doesn't disappear

1305
2
08-30-2012 10:35 PM
demdeberanz
New Contributor II
Hi everybody,
   I'm experiencing the following issue: I use a popup window to show feature-related information after a click on them. I customized this popup with html code that let me to hide and show some information through a button, basically I set dynamically the visible attribute of the cells of a table. After the popup is shown up, when I click on the popup's close button (the cross), it disappear but the table remains on the map.
If for example I don't modify the visibility property of the cells the popup works correctly.
How can i fix this issue?

Thank you very much.
0 Kudos
2 Replies
__Rich_
Occasional Contributor III
Using my magic crystal ball I can see...

...that you need to post some of your code so that people can help you 🙂

(suspect the answer lies within "I customized this popup with html code")
0 Kudos
demdeberanz
New Contributor II
 function getPopupContent(){
                            return "<table><tr style=\"visibility:" + changeVisibility(param) + ";\"><td>informations... </td></tr>"
}


The popup content is set through the previous function, according to "param" the visibility is set to hidden or visible returning the correspondent string.
0 Kudos