[Mapserver-users] query and template file
Bastarrika Izagirre
bizagirre at hotmail.com
Mon Jul 12 02:50:19 PDT 2004
<html><div style='background-color:'><DIV class=RTE>Dear all,</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>I'm quite new using Mapserver and Javascript. I have a configuration javascript so i define each layer and its queryable fields.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>LayerName[0]="LayerName"</DIV>
<DIV class=RTE>LayerFields[0]="IDFIELD|SHAPE"</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>and </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>pfield=LayerFields.split['|']</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>If I put [IDFIELD] in the query template file i can see the value ot the field, but if i put </DIV>
<DIV class=RTE>'[' + pfield[0] + ']' i see "pfield[0]" and not the value of this field. I want to load the value of fields defined in LayerFields array in another javascript array. How could i do it? I can't use mapscript to do it.</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Thanks</DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE> </DIV>
<DIV class=RTE>Regards,</DIV>
<DIV class=RTE>Aitor Bastarrika</DIV>
<DIV class=RTE><A href="http://www.estudiosgis.com"></A> </DIV>
<DIV class=RTE> </DIV></div><br clear=all><hr>Consigue aquí las mejores y mas recientes ofertas de trabajo en América Latina y USA: <a href="http://g.msn.com/8HMBES/2734??PS=47575">Haz clic aquí</a> </html>
More information about the MapServer-users
mailing list