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
rofficerrofficer 

Accessing a report through a tab

When I attempt to access a report through a tab the page is layered like it is in opening the tab in a frame. The URL I am using is: https://na1.salesforce.com/00O30000000ny45 is there another way I should be doing this? I've tried to use make S-Control that uses a javascript to do this but it always opens a new window. the java script was this: <SCRIPT language=javascript type=text/javascript>window.open('https://na1.salesforce.com/00O30000000ny45') </SCRIPT> Any advice would be much appreciated.

Message Edited by DevAngel on 08-23-2005 10:21 AM

DevAngelDevAngel
In an scontrol you will want to do window.parent.location.href = "00O30000000ny45";  because the scontrol is in a frame and you need to navigate up the dom to the outer-most window object.
rofficerrofficer
Thanks that did the trick for me.
311311
Can you please provide the sample javascript code used in the s-control. I'm trying to solve the exact same issue.

Thanks
The_FoxThe_Fox
Hi

exactly what devangel wrote:

window.parent.location.href='whatever url you want'

Regards

Message Edited by The_Fox on 09-23-2005 09:58 AM

311311
All,

Thanks. The initial recommendation by DevAngel didn't work. My users were using a downrev version of Mozilla. I believe the recommendation would work in IE, but not necessarily in Mozilla 1.7.

However, if the full string is used...It works fine.


window.parent.location.href = "https://na1.salesforce.com/xxxxxxxxxxxx";


Thanks for the help.

Message Edited by 311 on 09-26-2005 01:22 PM

The_FoxThe_Fox
ok maybe with just ="/xxxx" should work too