On Sep 9, 1:59 pm, mmjaeger <[EMAIL PROTECTED]> wrote:
>
> Is there an easy fix for this - am I doing anything wrong?

Apart from not following the posting guidelines and including a link?

Is this really a question relating to the API, or to
Javascript? .replace() is a method of a String. It won't work on a
Number, so if "text" is actually a Number (you've assigned 2 to it
instead of "2"), you may well get an error.

You could use text.toString().replace() instead in order to force text
to be a String which .replace can act on.

Andrew
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to