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
falksonfalkson 

Permission denied to call method XMLHttpRequest.open

Hi,
 
I keep getting this error in Firefox. 
uncaught exception: Permission denied to call method XMLHttpRequest.open
 
I also get "Permision denied" in IE7.
 
I have read that this is possisbly a Firefox issue but after adding the following line I still get the error. 
 

function init() {

if (window.XMLHttpRequest) sforceClient.appType = Sforce.Application.Type.FireFox;

}

This function is called from the Body oload.

I beliveve this functionality worked in IE6 but I cannot vouch for it.

Any assistance would be appreciated.

MF

Message Edited by falkson on 10-20-2006 11:14 AM

 

Message Edited by falkson on 10-20-2006 11:15 AM

Peter YaoPeter Yao
I'm seeing the same problem in Firefox 2.0.

This works in IE 6 and the previous version of Firefox.

Is it a problem with the new firefox?

Peter
BAGELBAGEL
Hi, have you found the workaround for this yet? I have the same problem. Thanks.
BLBL
Any Mozilla based browser (Firefox, Camino, etc.) will return this error when you try to execute XMLHttpRequests from one domain to another (http://yoursite.com to www.salesforce.com/services/Soap/u/11.0 for example).

To get around this you need to disable cross site scripting protection within hidden preferences in Firefox or other Mozilla based browsers and add a line of code to your javascript library:

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");

I've posted details on how to fix Permission denied to call method XMLHttpRequest.open with respect to the Ajax Toolkit on my blog. The solution should be workable for your situation as well.