var content =feature.getContent(); registry.byId("leftPane").set("content", content);
Hey,I was browsing forum & api without any result to my query, I'd like to get the data from my popup in order to re-use it with an AJAX function. cannot find a way to do it.I'm already moving my popup next to the map so I though it would be easy to get one of the field.I got this part of code from an arcgis tuto var content =feature.getContent(); registry.byId("leftPane").set("content", content);[HTML]<div id="leftPane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div>[/HTML]The content properly get into the leftPane DIV but whenever I try to use it another way than this one I got a 'object HTMLDivElement' as result.thanks
popup.getSelectedFeature()
popup.features
var template = new esri.InfoTemplate("","${Status:compare}");
function compare(value, key, data) { var content = "The Status of XYZ is" + data.Status; registry.byId("leftPane").set("content", content); //show in left Pane return content; //show in Popup }
popup = new esri.dijit.Popup({ markerSymbol:popupmarker, fillSymbol: new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2), new dojo.Color([255,255,0,0.25])) }, dojo.create("div"));
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.