function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
simham1.3928717896687256E12simham1.3928717896687256E12 

i want display google search page in vf page

Offshore Freelance ConsultantOffshore Freelance Consultant
Hi,

Below code works!

<apex:iframe src="http://www.google.com/custom" height="1000px" width="1000px" scrolling="TRUE"/>


Showing the content depends on browser settings, it by default works in chrome , ie. In firfox, you have to click the sheild in address bar and allow this.

Hope this helps!

Regards!

-----------------------------
J G


subra_SFDCsubra_SFDC
<apex:page standardController="Account">

<script src="http://maps.google.com/maps?file=api">
</script>

<script type="text/javascript">

var map = null;
var geocoder = null;

var address = "{!Account.BillingStreet}, {!Account.BillingPostalCode} {!Account.BillingCity}, {!Account.BillingState}, {!Account.BillingCountry}";

function initialize() {
if(GBrowserIsCompatible())
{
  map = new GMap2(document.getElementById("MyMap"));
  map.addControl(new GMapTypeControl());
  map.addControl(new GLargeMapControl3D());
 
  geocoder = new GClientGeocoder();
  geocoder.getLatLng(
    address,
    function(point) {
      if (!point) {
        document.getElementById("MyMap").innerHTML = address + " not found";
      } else {
        map.setCenter(point, 13);
        var marker = new GMarker(point);
        map.addOverlay(marker);
        marker.bindInfoWindowHtml("Account Name : <b><i> {!Account.Name} </i></b>
Address : "+address);
      }
    }
  );
}
}
</script>


<div id="MyMap" style="width:100%;height:300px"></div>
<script>
    initialize() ;
</script>

</apex:page>






source: http://forceguru.blogspot.in/2012/01/integrating-google-maps-in-salesforce.html


https://success.salesforce.com/answers?id=90630000000guBkAAI