>   function dasherize(title) {
>     return title.replace(/\s+/g,'-').replace(/'/g, '');
> google.maps.event.addListener(marker, "click", marker.openInfoWindow);
>   }

Investigate what happens when javascript encounters a 'return' inside
a function.  This is not a maps issue.  Example javascript function
tutorial
http://www.quirksmode.org/js/function.html
It will be quicker for you to learn some rudiments of javascript, than
trying to insert code snippets at random places in your code.

As your dasherize() function is about massaging a string, it's
probably not a good place to be putting something to do with markers
that it knows nothing about.

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