On Apr 21, 6:49 am, mmitchell <[email protected]> wrote:
> The error is that the markers are in the wrong place. When i check to
> see if the lat or lon are numbers is says that they are not, but in IE
> they are numbers.
See Ross's response. You are using a browser specific method to parse
the xml. Try using getElementByTagName and GXml.value to parse out
the element text.
Something like this (not tested):
var lat = parseFloat(GXml.value(psite[i].getElementByTagName("lat")
[0]));
var lon = parseFloat(GXml.value(psite[i].getElementByTagName("lon")
[0]);
-- Larry
>
> On Apr 20, 5:30 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Apr 20, 1:46 pm, mmitchell <[email protected]> wrote:
>
> > > I'm parsing an xml file that has the lat and lon. In firefox it says
> > > that it's not a number but I'm using parseFloat which works in IE and
> > > I thought it was suppose to work in Firefox. I'm not sure what I'm
> > > doing wrong.
>
> > > Here is a link to the page.
>
> > >http://urwa.org/stewardship/CJISST_map.asp
>
> > > Thank you
>
> > Seems to work for me in both IE and FF (and Chrome) where does
> > firefox report an error? What is the exact error text? How do we
> > make the error happen?
>
> > -- Larry
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---