Thanks for your quick response Andrew!

Its annoying starting a new language - I understand the theory but the
syntax is a whole new thing to me!

now to work out parse Float!

On Apr 15, 3:49 pm, Andrew Leach <[email protected]>
wrote:
> On Apr 15, 3:35 pm, xhan <[email protected]> wrote:
>
>
>
> > I've another field in the database called description - how would I
> > display that in the infowindow as well as name?
>
> > The code that displays the name is part of a for loop,
> > markers[i].infowindow = ""+events[i].getAttribute("name");
>
> > I've been trying to work out a way to add the description to this line
> > but with no avail. Am I editing the wrong line!?!
>
> What have you tried?
>
> markers[i].infowindow = ""+events[i].getAttribute("name")
>   +"<br>"+events[i].getAttribute("description");
>
> (That will have broken in at least one place: put it back together)
>
> Don't forget that your "lat" and "lng" attributes are *strings* not
> numbers, and you should use parseFloat on them to turn them into
> numbers to position a marker.
>
> Andrew

--~--~---------~--~----~------------~-------~--~----~
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