+ Start a Discussion

pass parameters between visual forcepages

while i am trying to pass parameters between pages the value being passed is visible in the url,how to hide or mask it in the url...can any body help....

Andres AndradeAndres Andrade

You can use javascript;


function callChildWindow(){

        myChildWindow = window.open("myPageUrl.html",null);
  myChildWindow.useParameters(param1, param2 , ..... paramn)



 function useParameters(param1, param2 , ..... paramn){
     //user parameters with apex:inputHidden fields

If you don't want to use javascript  and want to mask the parameter you can use Crypto Class to encrypt the parameter

Hope this helps.