<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19046"></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=595252021-10062011>if you want access every attribute, you can
use something like this</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial><SPAN
class=595252021-10062011></SPAN></FONT><FONT color=#0000ff size=2
face=Arial><SPAN class=595252021-10062011></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>function
ftAttributes(ft)<BR>{<BR> var theHTML = "<SPAN
class=595252021-10062011><table>\n</SPAN>";<BR> for(var
key in ft.attributes)<BR>
{<BR> theHTML
+= <SPAN class=595252021-10062011>'<tr><td>' + </SPAN>key +
'<SPAN class=595252021-10062011></td><td></SPAN>' +
ft.attributes[key] + '<SPAN
class=595252021-10062011></td></tr>\n</SPAN>';</FONT></DIV>
<DIV dir=ltr align=left><FONT color=#0000ff size=2 face=Arial>
}<BR><SPAN class=595252021-10062011> </SPAN>theHTML <SPAN
class=595252021-10062011>+</SPAN>= "<SPAN
class=595252021-10062011></table>\n</SPAN>";<BR>
return(theHTML);<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial><FONT color=#0000ff><FONT size=2>A<SPAN
class=595252021-10062011>rnd</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV dir=ltr lang=de class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>Von:</B> openlayers-users-bounces@lists.osgeo.org
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Vishal
Mehta<BR><B>Gesendet:</B> Freitag, 10. Juni 2011 22:57<BR><B>An:</B>
openlayers-users@lists.osgeo.org<BR><B>Betreff:</B> [OpenLayers-Users] referring
to vector layer attributes byattribute column index?<BR></FONT><BR></DIV>
<DIV></DIV>Is it possible to refer to an attribute by an index instead of its
name?<BR><BR>I want to programmatically be able access any vector layer's
attributes in a popup when a feature is selected. Each vector layer has
different number and names of attributes.<BR><BR><BR>Thanks,<BR>Vishal<BR
clear=all><BR></BODY></HTML>