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
NaishadhNaishadh 

Permission denied for c.cs1.visual.force.com to get property Window.document from cs1.salesforce.com

Hi,

I want to pass data from visual force page to parent page. I am opening VF into popup window.
When I am trying to put data in parent page using javascript window.opener statement, I am getting following error.

Permission denied for <https://c.cs1.visual.force.com> to get property Window.document from <https://cs1.salesforce.com>

Please help!

 
Message Edited by Naishadh on 08-24-2009 01:21 AM
Message Edited by Naishadh on 08-24-2009 01:22 AM
Message Edited by Naishadh on 08-24-2009 01:23 AM
Anand@SAASAnand@SAAS
As of 2 releases ago, Visual force pages are served from a different domain (c.na.visual.force.com) and your standard pages are hosted in "na6.salesforce.com" and basic browser security will not allow you to access javascript across domains. 
NaishadhNaishadh

So then how to replace s-control with visual force with such a big drow back and SalesForce is going to stop supporting s-control sometime after january 2010.

 

Moderator please guide!

Message Edited by Naishadh on 08-24-2009 11:57 PM
Chirag MehtaChirag Mehta

Hey,

 

Same here, I am also facing the same issue.

 

Did anyone find a solution for this cross server issue.

 

 

NaishadhNaishadh

Any Solution?

 

  

Chirag MehtaChirag Mehta
No, Me too waiting from salesforce community or administrators to hear something on above ....
jbroquistjbroquist

Was this issue ever resolved?

 

Can a moderator please advise as to a workaround for the cross-domain scripting issues ...

sfdcfoxsfdcfox

http://sites.force.com/ideaexchange/ideaView?c=09a30000000D9xt&id=08730000000BpiMAAS

 

So, not yet, but it has been suggested on ideaExchange. Make sure you vote for it.

Alpesh Patel 16Alpesh Patel 16
Any update on this issue ?