Select to view content in your preferred language

Click a feature, get its attributes in a separate div

469
1
11-07-2012 11:50 AM
BrettGreenfield__DNR_
Occasional Contributor II
I'm working on a web map that's going to have point features with nearly fifty fields in their attribute table, and I'd like to allow the user to click on a feature and get all of those fields.  Due to the number of fields, I'd rather avoid using a popup; I'd instead prefer to load the data into a separate div.  I can set up the div fine, but I'm not sure how to go about getting the data to load into it.  Is there a way to go about doing this using esri.dijit.InfoWindow, or am I going to have to use an entirely different method?
0 Kudos
1 Reply
JeffJacobson
Regular Contributor
I don't think you'll be wanting to use the InfoWindow since you don't want to use a popup.
You'll have to use an event handler for the feature layer's onClick event.

This sample is similar to what you are describing...
http://help.arcgis.com/en/webapi/javascript/arcgis/samples/fl_dgrid/index.html
0 Kudos