It worked! Thank you so much! I forgot to change the index from 3 to
0.

On Apr 21, 1:41 pm, "[email protected]" <[email protected]>
wrote:
> On Apr 21, 10:26 am, mmitchell <[email protected]> wrote:
>
> > sorry here it is
>
> Please use GLog.write rather than alert.
> Hitting escape to get control back on my browser is tedious.
>
> Changing it as I suggested works for me.
>
> var name = GXml.value(psite[i].getElementsByTagName("ident")[0]);
> var lat = parseFloat(GXml.value(psite[i].getElementsByTagName("lat")
> [0]));
> var lon = parseFloat(GXml.value(psite[i].getElementsByTagName("lon")
> [0]));
> var category = GXml.value(psite[i].getElementsByTagName("species")
> [0]);
> var icontype = "pop"+GXml.value(psite[i].getElementsByTagName("pop")
> [0]);
> var point = new GLatLng(lat,lon);
> GLog.write(point+" ident="+name+" lat="+lat+" lon="+lon+"
> cat="+category+" icon="+icontype);
>
>   -- Larry
>
>
>
>
>
> >http://urwa.org/stewardship/CJISST_map.asp
>
> > thanks
>
> > On Apr 21, 1:00 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Apr 21, 9:37 am, mmitchell <[email protected]> wrote:
>
> > > > I tried it but it still says that it's not a number. I get the same
> > > > error in IE too.
>
> > > I don't see that attempt at your link above...
>
> > > > On Apr 21, 9:58 am, "[email protected]" <[email protected]>
> > > > wrote:
>
> > > > > On Apr 21, 6:56 am, mmitchell <[email protected]> wrote:
>
> > > > > > I don't think I can use .getAttribute("lat") because my xml doesn't
> > > > > > use attributes. Here is a link to my xml. What do you think?
>
> > > > > No.  You are using element text not attributes.  You would use
> > > > > getAttribute for xml that looks like this:
> > > > > <site lat="12.12" lon="123.34" >
>
> > > > > See my answer above.
>
> > > > >  -- Larry
>
> > > > > >http://urwa.org/stewardship/genxml.xml
>
> > > > > > On Apr 20, 6:38 pm, Rossko <[email protected]> wrote:
>
> > > > > > > > I think this line causes the issue -
> > > > > > > >     var name = psite[i].childNodes[0].text
>
> > > > > > > umm, well it is that - but nowt to do with semicolons....
>
> > > > > > > .text is IE-specific XML property and fails in Mozilla.
> > > > > > > See -
> > > > > > >  http://www.hiteshagrawal.com/javascript/javascript-parsing-xml-in-jav...
> > > > > > > and compare .text and textContent
>
> > > > > > > Your best fix is to use the browser-independant methods already
> > > > > > > supplied in the API, see -
> > > > > > >    http://econym.org.uk/gmap/basic3.htm
>
> > > > > > > cheers, Ross K- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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