• richan
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
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!
  • February 02, 2007
  • Like
  • 0