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
adrisseladrissel 

Home Page Component - Redirect?

Hey all,
There are two functions I am attempting to perform, the first of which is the desired and the second of which is the "I'll settle for it" option.

Is it possible to:

(1) Create a custom home page component (sidebar) of some sort that invokes and posts data to a VF page in the MAIN BODY of the screen (i.e. it doesn't render it in the sidebar itself.)?

(2) Create a custom home page component (sidebar) that simply causes the ENTIRE PAGE to refresh (not just the component in the sidebar)?

Here is the code for an example of #2:
<apex:page standardController="User" extensions="Five9ScreenPop">
    <script type="text/javascript">
        function redirect(){        
            window.top.location.href("https://c.cs24.visual.force.com/apex/Five9_Select_Pop?ANI=9999999999");            
            return false;
        }
    </script>
    <apex:form id="searchForm">
        <center><apex:commandButton value="Search Contacts & Accounts" action="redirect();"/></center>
    </apex:form>
</apex:page>
When this button is clicked the small little section of the home page component in the sidebar is what is redirected, not the entire page.

How can I accomplish this?

 
ShashankShashank (Salesforce Developers) 
Please see if thiis helps: http://salesforce.stackexchange.com/questions/14125/clicking-on-the-custom-component-in-sidebar-should-load-on-the-same-page