• John Burke 22
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi team,

Before Spring 15 , my dashboard was getting embedded properly in salesforce user homepage. But, now i am getting a page that opens up into the dashboard page and is not a part of the home page any more ???? Is there some new change with respect to iframe.

Please advise urgently.

I have the following visualforce page:

<apex:page sidebar="true" showHeader="true">
<!--Hello {!$User.FirstName} {!$User.LastName} {!$UserRole.Name}-->
<iframe id="myFrame" height="100%" width="100%" frameborder = "no" scrolling = "no"></iframe>
        <script type = "text/javascript">
            var sw = "{!$UserRole.Name}"
            var iframe = document.getElementById('myFrame'); 
            
            if (condition1) {
                iframe.src = "/01Z40000000MXOu?isdtp=mn";
            }
            
            else if (condition2") {
                iframe.src = "/01Z40000000MXQR?isdtp=mn"; 
            }
            
            else if (condition3) {
                iframe.src = "/01Z40000000MXOu?isdtp=mn"; 
            }
            
            else if (condition4) {
                iframe.src = "/01Z40000000MXOp?isdtp=mn"; 
            }
             
            else if (condition5) {
                iframe.src = "/01Z40000000MXOk?isdtp=mn"; 
            } 
                        
        </script>
</apex:page>