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
ArmanArman 

S-Control doesn't work with IE7 and FireFox when loging in through emea.salesforce.com

I've been scratching my head for two days over this problem. One of our people here tends to access salesforce through http://emea.salesforce.com URL. Logging in through this URL results in IE7 rc1 and Firefox 1.5.0.7 crash when ever I want to load any of my S-Controls. IE returns "permission denied" and "Uncaught exception: Permission denied to call method XMLHttpRequest.open" for firefox.

Has anyone else had this problem?
Doug ChasmanDoug Chasman
Do you also see the "permission denied" exception in IE6?
Doug ChasmanDoug Chasman
This looks like a case of same origin security checks (see http://www.mozilla.org/projects/security/components/same-origin.html) in the browser. As discussed in the article above, setting document.domain might be able to help.

By adding the following to the top of the scontrol:

document.domain = "salesforce.com";

you can relax the same origin restriction a bit. Please note that another common cause of this is a mismatch between protocol (http v. https).

Message Edited by Doug Chasman on 09-21-2006 07:11 AM

The_FoxThe_Fox
Hello Arman,

Check that you do not have hardcoded url in you code with na1.salesforce.com or xxx.salesforce.com and as mentionned make the links to https xyz

Hope this helps

Regards
ArmanArman
sforceclient.js is the only url I have hard coded in there like this:
<script src="https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js?browser=true" type="text/javascript"></script>

Is there some merge fields I could use so that i don't have to hard code this?