DMXzone Google Maps Support Product Page
In progress
Error
Reported 15 Aug 2011 21:30:56
1
has this problem
15 Aug 2011 21:30:56 Vernon Sabeski posted:
We get the following error when we make change any setting like map type, zoom etc. :Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.1)
Timestamp: Mon, 15 Aug 2011 18:17:50 UTC
Message: Syntax error
Line: 21
Char: 24
Code: 0
The code for this page is as follows:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="ScriptLibrary/jquery-latest.pack.js"></script> <script type="text/javascript" src="ScriptLibrary/jquery.gmap.min.js"></script> </head> <body> <div class="dmxGoogleMaps" id="map1" style="width:600px;height:400px;"> </div> <script type="text/javascript"> // <![CDATA[ jQuery(document).ready( function() { jQuery("#map1").gMap( {toJSONString%3A#1=(function () {return s.object(this);}), width:600, height:400, markers:[{latitude:51.618017, longitude:2.48291, icon:{toJSONString%3A#1#}, toJSONString%3A#1#}], icon:{toJSONString%3A#1#}} ); } ); // ]]> </script> </body> </html>
The only time the extension seems to work is when we remove the toJSONString and make the code:
<script type="text/javascript"> // <![CDATA[ jQuery(document).ready( function() { jQuery("#map1").gMap( {width:600, height:400, markers:[{latitude:51.618017, longitude:2.48291}]} ); } ); // ]]> </script>
A popup appears stating that ScriptLibrary folder, toJSONString folder, 2 javascript files and toJSONString file would be copied to the root but it seems that the toJSONString folder and file are not added to the site.
We would appreciate if you could assist us on the same.
Replies
Replied 22 Aug 2011 09:40:35
22 Aug 2011 09:40:35 Teodor Kuduschiev replied:
Hello Vernon,
Are you using the latest version of the extension?
Are you using the latest version of the extension?