Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.4: Use Google Maps with the People widget' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Use Google Maps with the People widget
Authored by: rbjorensen on Jan 16, '06 09:23:37AM

Like I suspected, removing everything past .replace except for ; does it too:

Instead of this:
mapURL += tmpAddr.replace(/s+/g, "s");
mapURL += singleResult.city.replace(/s+/g, "s");
mapURL += singleResult.state.replace(/s+/g, "s");
mapURL += singleResult.zip.replace(/s+/g, "s");
mapURL += singleResult.firstname.replace(/s+/g, "s");
mapURL += singleResult.lastname.replace(/s+/g, "s");

You can use this:
mapURL += tmpAddr;
mapURL += singleResult.city;
mapURL += singleResult.state;
mapURL += singleResult.zip.replace;
mapURL += singleResult.firstname;
mapURL += singleResult.lastname;

But, like I said, there must be some reason he had the s+ string replacement in there. He just didn't mean to replace all "s". Let us know.

Thx.



[ Reply to This | # ]