On Sep 3, 12:20 am, Voldemort <[EMAIL PROTECTED]> wrote:
> Thanks Larry .. :)
>
> To see JavaScript errors,
> (1) I am using firebug for firefox....
> (2) Error Console in Tools in firefox ..

The timing issue shows up in the Error Console in firefox as:
Error: document.getElementById("location_name") is null
Source File: http://www.sdslabs.org/gmap/geoAdd.html
Line: 82

The map click handler issue is less obvious in firefox:
Error: a is undefined
Source File: http://maps.google.com/intl/en_us/mapfiles/125/maps2.api/main.js
Line: 981

In IE6 the error that is reported is 'lat' is null or not an object
(which was more obvious to me) and in Opera there is a backtrace in
the error consol that points out this line:
    var marker = new GMarker(point, {draggable : true});
[point is null]

  -- Larry
>
> On Sep 3, 12:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to