This seems to a fairly common issue.  I have read every thread
containing the word apostrophe and found no solution.

This is the link to my page

http://boracayguide.siteprevue.net/MapTest.asp

And this is the code used to create the array:
<%
while not rsLocations.EOF %>
mArray.push('<%= rsLocations.Fields.Item("Latitude").Value %>;<%=
rsLocations.Fields.Item("Longitude").Value %>;<%=
rsLocations.Fields.Item("Name").Value %>;<%=
rsLocations.Fields.Item("Address").Value %>;<%=
rsLocations.Fields.Item("Village").Value %>;<%=
rsLocations.Fields.Item("Barangay").Value %>;<%=
rsLocations.Fields.Item("Province").Value %>;<%=
rsLocations.Fields.Item("City").Value %>;<%=
rsLocations.Fields.Item("PostalCode").Value %>;<%=
rsLocations.Fields.Item("Phone").Value %>;<%=
rsLocations.Fields.Item("Fax").Value %>;<%=
rsLocations.Fields.Item("InfoImage").Value %>;<%=
rsLocations.Fields.Item("ID").Value %>')
<% rsLocations.movenext
wend  %>

The problem is one of the entries contains an apostrophe which causes
the string to terminate prematurely.  The entry is Dave's Straw Hat
Inn. I have removed the apostrophe in the DB record since I have not
been able to locate a viable solution.

I know this is a javascript issue, but is an issue I am sure a lot of
us run into. It sure would be nice if someone out there who has this
solution would post it for everyone else's benefit.

Thanks

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