> http://creativemaps.vism.ag/1c.htm
>
> still no success. it might be general javascripting but i cant work out
> what its missing or why its not swapping the spaces for hyphens.

I think that must be because you're not grasping the flow of the
script.
You have a tilesloaded listener that when triggered, reads the url
input parameters (query string) and compares that with your markers.
If it finds one, it triggers a click on that marker.  Then processes
friendly_url(str,max) where neither 'str' nor 'max' have been defined
to be anything.  Does that not strike you as doing things in the wrong
order?

In your code that sets up the infowindow content, you have
"  ... onclick='friendly_url(str,max)'>" ...
This will set up so that when the user clicks that div,
friendly_url(str,max) will be executed.  I think what you intend is to
use friendly_url() to process the string you are going to show in the
infowindow, before you populate the infowindow.  To use friendly_url()
at all, you will have to tell it what to operate on, 'str' isn't
defined

None of this is maps related. You might look outside the maps world
for help with basic javascript concepts, such as passing arguments to
functions.

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