rs is a function or an object?
anyway yes, title must be a string

cheers,
Federico



2010/8/4 Nikul Padhya <[email protected]>

> Is the rs(0) field in String format ??
>
>
> On Aug 2, 12:03 pm, raumin <[email protected]> wrote:
> > I am adding markers on the map from a database, and that works. But
> > when I want the marker to have a title from the database it does not
> > work. Why???
> >
> > This works
> >
> > rs.moveFirst();
> >     while(!rs.eof)
> >     {
> >        var location = new google.maps.LatLng(rs(1), rs(2));
> >        var marker = new google.maps.Marker({
> >         position: location,
> >         map: map,
> >         title: "Hello World" });
> >
> >       rs.moveNext();
> >     }
> >
> > But when I change the title value of the marker from "Hello World" to
> > a variable
> >
> > rs.moveFirst();
> >     while(!rs.eof)
> >     {
> >        var location = new google.maps.LatLng(rs(1), rs(2));
> >        var marker = new google.maps.Marker({
> >         position: location,
> >         map: map,
> >         title: rs(0) });
> >
> >       rs.moveNext();
> >     }
> >
> > Nothing works, can I only use string literals???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-maps-js-api-v3%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to