+ Start a Discussion

Visualforce Modal



The example in this page http://wiki.developerforce.com/index.php/Visualforce_Popup  actually popsup Modal from a Visualforce page.


Is there any way Modal can be launched via a URL or from a standard page? If so, how can we call those functions?

Can someone please shed some light on how to do this? May be a sample helps






Yes.Modal can be launched via a URL or from a standard page you can us.

First of all, include all the files you need to embed as follows:

  • Then whatever code is embedded in HTML/VF try to embed in javascript as below:

document.body.innerHTML +="<div id=\"initialized\"></div>";
document.body.innerHTML += "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://yui.yahooapis.com/2.8.0r4/build/container/assets/skins/sam/container.css\"><link rel=\"stylesheet\" type=\"text/css\" href=\"http://yui.yahooapis.com/2.8.0r4/build/button/assets/skins/sam/button.css\"><style type=\"text/css\">.mask {-moz-opacity: 0.8;opacity:.80;filter: alpha(opacity=80);background-color:#B4B4B4;}</style><div id=\"wrapper\" ><div id=\"content\"><div id=\"sampleWizzardWindows\" ><div class=\"hd\">CQ - Wizzard</div><div class=\"bd\"></div></div></div> <!--end content--> </div>";


Please let me know if you are stuck up anywhere.