There are several problems:

1. The input you're trying to update does not have an ID.
2. That same input has name="poly" which is the same name you've given
to your GPolygon object.
3. And add an ID to your input field.
<input id="myInputField">

4. This line GEvent.addListener(poly, "lineupdated", onUpdate) points
at the function that contains it.

Change it to something like this:

GEvent.addListener(poly, "lineupdated", function(){
  document.getElementById('myInputField').value =
poly.getVertexCount();
});

5. Remove the <form> tags. They are doing nothing.

6. Notice what difference posting a link makes! :-)


--
Marcelo - http://maps.forum.nu
--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to