Hi, I have been having browser compatibility issues and was wondering
if anyone could help.
I have been using a JavaScript array to populate marker data using ASP
JS in a google Maps project. For some reason the code works fine in
FireFox but not in Internet
Explorer (Run time error - expected ']' and 'markers' is undefined)
Any help would be gratefully received
--------------------------------------------------
<script type="text/javascript">
// get data from the db and plot the makers
var markers = [
<%while (!rstPropPoints.EOF){%>
{
'latitude':
<%=rstPropPoints.Fields.Item("lat").Value%>,
'longitude':
<%=rstPropPoints.Fields.Item("long").Value%>,
'propname':
'<%=rstPropPoints.Fields.Item('propname').Value%>' ,
'text': '<%=rstPropPoints.Fields.Item('text').Value%>',
'image':
'<%=rstPropPoints.Fields.Item('image').Value%>',
'type':
'<%=rstPropPoints.Fields.Item('sleeps').Value%>',
},
<%rstPropPoints.MoveNext();}rstPropPoints.Close(); %>
];
</script>
----------------------------------------------------
thanks - Hugh