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
AppRopozAppRopoz 

Javascript is not working for managed beta package

I have a VF page as simple as following:

 

<apex:page>

<apex:tabPanelswitchType="server"selectedTab="Tab1"id="theTabPanel">

<apex:tablabel="Tab1"name="Tab1"id="Tab1"onTabEnter="window.top.location.replace('http://www.google.com');">

</apex:tab>

<apex:tablabel="Tab2"name="Tab2"id="Tab2"onTabEnter="window.top.location.replace('http://www.yahoo.com');">

</apex:tab>

<apex:tablabel="Tab3"name="Tab3"id="Tab3"onTabEnter="window.top.location.replace('http://www.appropoz.com');">

</apex:tab>

</apex:tabPanel>

</apex:page>

 

It is working fine in dev account,. Using setup->Create->Tabs-> then create new VF Tabs to contain the page,  when Tab2 is clicked, it is redirect to www.yahoo.com.

 

After managed packaging, and installed to a either professional/Enterprise edition account, Click Tab2 only refresh the page without redirect to yahoo.

 

Is this because of Managed Beta? Will this work in Managed Relase.

 

Thanks for your help!

 

Steve

Best Answer chosen by Admin (Salesforce Developers) 
admintrmpadmintrmp

No reason why it shouldn't work.

 

Have you tried using:

 

window.top.location.href = 'http://yahoo.com'; return false;

 

All Answers

admintrmpadmintrmp

No reason why it shouldn't work.

 

Have you tried using:

 

window.top.location.href = 'http://yahoo.com'; return false;

 

This was selected as the best answer
AppRopozAppRopoz

Thanks a  lot!

 

Steve