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
PDVPDV 

How to refresh only the detail frame in the console

Hello,
 
I am looking for the code on how to refresh the detail iframe of the console. I am currently using the following function:
 
function goBack(Id)
{
// This brings me back to the correct record if an Object Id is given.
var r = "{!Scontrol.URL}".split(/salesforce.com/);
var whichId = "";
if (Id != null) whichId = Id;
var returnUrl = r[0] + "salesforce.com/"+whichId;
window.parent.location.href = returnUrl;
}
 
This works perfect but when it refreshes the iframe it includes the banners of salesforce in the detail frame! probably i should add a parameter to the returnUrl. Normally I use "&isdtp=mn" which I add to a link but if I do it in my script I get a message that the url no longer exists.
 
All help is greatly appreciated!
richanrichan
hi,

i am also facing the same problem. I just wanted to refresh the detail page. The functionalities are great but the only problem is that it includes the salesforce banner in the detail frame.

thanks for any reply in advance.

richan