+ Start a Discussion
Amritesh SinghAmritesh Singh 

Calling a External site in VF Page

hello every1,


i need ur help,i m trying to call a external website to my vf page,not like pop window.


Pls help me,as i m very new to vf page n Apex.



Sridhar BonagiriSridhar Bonagiri

Hi Singh,


Please add the following code to your vf page.


<apex:iframe src="http://www.salesforce.com" scrolling="true" id="theIframe"/>


modify the value of 'src' attribute as per your requirement.



Sridhar Bonagiri

Amritesh SinghAmritesh Singh

Thanks Sridhar for ur help,


but it is still not working,as when i open Salesforce.com it opens in the frame but not like standard page,n when i clik on the links of the page,its shows u cant navigate to this page.


apart from this,when i try to open google or any other site it shows error that u cant open this in the frame like that.


what to do??? waiting 4 u rply

Amritesh SinghAmritesh Singh

Can u suugest me how to achieve this functionality when i click a button or link,


means when i click on button or link website will open on the page itself.????


Any help will be highly appreciated by any 1