rs is a function or an object? anyway yes, title must be a string cheers, Federico
2010/8/4 Nikul Padhya <nikul.pad...@gmail.com> > Is the rs(0) field in String format ?? > > > On Aug 2, 12:03 pm, raumin <rau...@gmail.com> 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 > google-maps-js-api...@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2bunsubscr...@googlegroups.com> > . > 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.