function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Steve_12Steve_12 

Passing variables to Custom Java Link

Hello..and thanks in advance for any and all help! 

 

I'm traditionally not a coder..so I apologize for my lack of knowledge up front :)

 

I've sucessfully added a Java Script pop-up to my salesforce.com page using custom links.  It first checks to see if the window is already open...and if not it opens the pop-up.

 

var newwindow;
function popUp(url, w, h, namn)
{
newwindow=window.open(url, namn, 'width='+ w +', height=' + h + ' resizable=no, scrollbars=auto, toolbars=no, location=no, directories=no, status=no, menubar=no, copyhistory=no');
if (window.focus) {newwindow.focus()}
}
javascript:popUp( 'url', w, h, 'name' )

 

 

What I need now is to pass salesforce.com variables to the java script above.  I want to have the script pass login/password information that can allow the application that's being opened to auto/login. 

 

The next question would be...whats the best way to secure this login information if I am able to get it passed.

StreamStream

Hi there,

 

Any success?

 

we have a similar need / problem.

 

We send out a lot of automatic notification emails to our partners.  We want them to be able to click on links within the notification emails and get directed to the relevant records within their partner portal.

 

The problem we are experiencing is that even though they have an already open Partner Portal when they click on the link they get force to re-login.  Very frustrating and annoying experience.  

 

So, we are wondering if anyone else has this problem and has perhaps solved it?