[Users] Only create popup if popup isn't already open
dan at inlet.geol.sc.edu
dan at inlet.geol.sc.edu
Tue Feb 8 05:15:44 CET 2011
Have a class member variable that is initialized to null. Then when you
create the popup, assign the popup member variable the return value. Then
you can test to see if the popup member variable is null, if it is, you
know you already have a popup displayed. Of course, when you close the
popup, you'll need to make sure you null it again.
> I am having a hard time getting my code to prevent popups from opening
> that are already open. When I try to set a unique ID and then not
> open a popup if that ID popup is open, then I am getting either the
> popup is undefined or "Uncaught TypeError: Cannot read property
> 'style' of undefined" in ext-all-debug.js line 2351.
>
> The code for the whole select control can be found here:
> http://jasonho.pastebin.com/ibX4v2kV
>
> Is it because I am trying to create the popups inside the
> getfeatureinfo event handler for the WMSGetFeatureInfo Control?
> _______________________________________________
> Users mailing list
> Users at geoext.org
> http://www.geoext.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list