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
Sirisha GodavarthiSirisha Godavarthi 

Uncaught SecurityError: Blocked a frame with origin "https://c.cs30.visual.force.com" from accessing a frame with origin "https://cs30.salesforce.com". Protocols, domains, and ports must match.

Hi,

When I trying to access standard page eliment from visualforce page component (as HTML componet is obsolate) and I'm getting the below error
"Uncaught SecurityError: Blocked a frame with origin "https://c.cs30.visual.force.com" from accessing a frame with origin "https://cs30.salesforce.com". Protocols, domains, and ports must match".

User-added image
Please any one suggest me how to impliment visualforce area in homepagecomponents.

Thanks,
Shirisha.
Jagannatha Reddy BandaruJagannatha Reddy Bandaru
Hi shirisha,

could you explain what's the clear requirement.

Thanks,
Jagan
jagan.srit@gmail.com
Sirisha GodavarthiSirisha Godavarthi
I'm trying to modify a label on standard page programatically and dynmically from HTML components. But from Winter'15 they are obsolete HTML Componets. So I try to use Visual force page component at this juncture, the above error is coming.

Here is my sample code(VF Component).

<apex:page >
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/soap/ajax/28.0/connection.js"></script> 
   
    <script language="javascript" type="text/javascript">
    j$=jQuery.noConflict();
   
    j$(document).ready(function(){
        window.location.href='about:blank';
        var xs=j$('#phHeaderImage', window.parent.document).attr("src");
        xs=window.parent.j$("img", "td[class='left']").attr("src");
        alert('xs'+ xs);
    });
   
    </script>   
</apex:page>

Thanks,
Shirisha