On Sep 3, 12:05 am, Voldemort <[EMAIL PROTECTED]> wrote:
>> Is it possible to access the value that user inputs in a form using
>> JavaScript on the same page ?
Yes.
> If I use
>
> <input type='button' onclick='addlisting(this.form)' value='Save'>
>
> AND then,
>
> function addlisting(form)
> {
> map.closeInfoWindow();
> var location_name = form.location_name.value;
> alert(location_name);
Issue: closing the infoWindow destroys the div it contains...
(you have an ordering problem)
Issue 2: The map click listener returns either a point or an overlay,
not both. When you click on an overlay, the "point" value is null,
causing errors (wrap the contents of your map click listener function
with an "if (point)".
Do you not know how to see your javascript errors?
-- Larry
> }
>
> It works in FireFox, but not in IE, Chrome
>
> URL:http://www.sdslabs.org/gmap/geoAdd.html
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---