You need to sign in to do that
Don't have an account?
nabemaru
Google Map problem of VisualForce page with IE8.0
I am developing google Map Page by VisualForce.
That page can show the Map with chrome, firefox, IE7 etc...
But with IE8.0, the map could not appier on the page.
Can anyone give me any help?
Thanks
This is my sample code.
<apex:page > <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"><head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> var map = null; function initialize() { var lat = 35.681382; var lng = 139.766084; var latlng = new google.maps.LatLng(lat, lng); var myOptions = { zoom: 17, center: latlng, scaleControl: true, mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map_canvas'), myOptions); } if (window.attachEvent) { window.attachEvent('onload', initialize); } else { window.onload = function() { initialize(); }; } </script> </head> <body onload="initialize()"> <div id="map_canvas" style="width:600px; height:600px;"></div> </body> </html> </apex:page>
I have tried your code in IE 8.0, it gives a security alert message. On clicking the NO button, it shows googlemap like IE7.0 and other browsers. There is no issue on clicking the NO button, but when you click on YES button it does not show any thing(some js error shown in VF Page). This error is related with the IE8 security. You need to check the IE8 security settings.
Hope this helps.
All Answers
I have tried your code in IE 8.0, it gives a security alert message. On clicking the NO button, it shows googlemap like IE7.0 and other browsers. There is no issue on clicking the NO button, but when you click on YES button it does not show any thing(some js error shown in VF Page). This error is related with the IE8 security. You need to check the IE8 security settings.
Hope this helps.
Thank you for your suggestion.
The map can appear on the VF page with IE8.0 after change security settings.
best regards.