Dear Simon,
I really appreciate your enlightment ,
But since i really don't know about java script, kindly please give me more detailed script

I tried to find what "getElementbyId(key)" is , and I found that I must adjust my form to what fields is available in my Postgis.
So I modified my form to just :

          <form action="/mywork/myscript.cgi">
              My Name is :
<input type="text" id='label' name="myName" readonly onfocus="this.form.btn_sub.focus()" ><br>
              My Geometry is :
<input type="text" id='the_geom' name="myGeom" readonly onfocus="this.form.btn_sub.focus()" ><br> <input name="btn_sub" type=submit value="Set It!" tabindex=1>
          </form>

But I Still don't know the javascript part.
Kindly please give me your enlightment

Sincerely
-bino-

[email protected] wrote:
Hi bino,

u can do this with the key value, like this:

for (var key in e.feature.attributes){
document.getElementById(key).value = e.feature.attributes[key];
}

Good luck,
Simon

_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to