+ Start a Discussion

Visual Force Site Page Injected using PHP into HTML Page - Controller Problem

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://my_public_visualforce_page.com");
curl_setopt($ch, CURLOPT_HEADER, 0);




Hello, I have used this for including a visual force page into an existing external web page. However the controller functions relating to the visual force page are not working.  


If i include the same visual force page through an iframe, the controller functions work fine. However when including it using php i cannot use the controller at all. 


Pulling a visual force page with a server side script into an existing html page and feeding that vf page into a div with ajax is what i'm doing and i do this for the purpose of styling. 


Is there something that i'm missing? Some reason why the controller is not getting fed in with the vf page into the html page? Any advice would be greatly appreciated.



You'll also have to pull down all the associated javascript files and rewrite all of the relative links.


Why don't you just use an iframe or link to the page directly?