You need to sign in to do that
Don't have an account?
Gareth Davies
Code:
Ajax 3.3 Beta - FireFox 1.5 - "Permission denied to call method XMLHttpRequest.open"
"Permission denied to call method XMLHttpRequest.open"
I am testing with some cross browser apps.
I have an HTML page which I load locally which has the the following :
var result = sforceClient.login(DebugUser,DebugPass);
This works fine when I test with IE (6.0.2900.) but with FF (1.5.0.4) it throws the above exception.
I can't find the call that is throwing the error (the debugger is not really that good in FF) but I have had the same issue when trying to load XML documents which was caused by the following:
ThIS Works in IE but not in FF
Code:
Tester= getXMLHTTPRequest(); Tester.open("get","Sample.xml",false) Tester.send();
Works fine in IE but in FF it throws the same error. FF, it seems, demands a NULL parameter in the send.
Code:
Tester= getXMLHTTPRequest(); Tester.open("get","Sample.xml",false) Tester.send(null);
This works with both . Perhaps this is the issue here as well?
I have no problem using
Code:
sforceClient.init("{!API_Session_ID}","{!API_Partner_Server_URL_70}");
Within an SControl on FF 1.5, so I don't think this is super-urgent, but it would improve things on the testing front here as we have other surpise errors caused by cross-domain calls that are making life difficult enough!
Any comments or suggestions welcomed.
Thanks
Gareth.
Message Edited by Gareth Davies on 06-14-2006 03:30 PM
Ive had similar troubles with the login method here but with IE 6 on Win XP(works on my machine IE6 with Win 2003 Standard).
I would also welcome any feedback or suggestions on this.
if it is the AJAX toolkit, then i think you are hitting a security feature of Firefox.
Thanks Ron
I was trying to use Venkman with very limited success...
Cheers
Gareth.
I have exactly the same problem with the same source, when I use sforce.login(""user", "password")...
it is work with IE 6.0 but not works with Firefox 1.5.0.4
Anyone has found which parameter to turn off ?
Thanks
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.