[SalesForce] How to load/include an visualforce page in modal box

I create a modal on a new button with javascript :

{!REQUIRESCRIPT("/soap/ajax/20.0/connection.js")} 

function insertScript(){ 

var box = new SimpleDialog("hersh"+Math.random(), true); 
parent.box = box; 
box.setTitle("Create new Order"); 
box.createDialog(); 
box.setWidth(350); 
box.setContentInnerHTML("<apex:page standardController='Quote'><apex:outputPanel><center><apex:iframe src='OPDevisEN?id={!Quote.Id}' /></center><p>Ceci est un exemple de texte.</p></apex:outputPanel><button class='btn' onclick='window.parent.box.hide(); return false;'>Annuler</button></apex:page>"); 
box.setupDefaultButtons(); 
box.show(); 
} 
insertScript();

The modal works, but how can i load my VF page in it with an iframe ?
Thanks for your help 😉

Best Answer

Here is something my friend wrote http://forceapp.blogspot.in/2015/08/custom-button-popup-on-detail-page.html

hope this helps.Do let me know if you need any further assistance.

Related Topic