AnsweredAssumed Answered

Popup contents

Question asked by SIGcorse on Jan 30, 2014
Latest reply on Jan 30, 2014 by SIGcorse

I'm trying to get the ID of a point using this sample

the intersting part of the code is here
connect.connect(popup, "onSelectionChange", function(){                 displayPopupContent(popup.getSelectedFeature());                     });

which call
            function displayPopupContent(feature){                 if(feature){                     var content = feature.getContent();                     registry.byId("leftPane").set("content", content);                   }             }

I'd like to get the value of the "content" variable, I could get it using leftPane but my goal is to get it before it goes to the leftPane. If I alert(content) it simply return a [object htmldivelement]. Btw, the content that appears in the leftPane is just an ID in my case.