You need to sign in to do that
Don't have an account?
Arman
function scontrolmain(IsStatic)
{
try
{
sforcecleint=GetSForceClient();
}
catch(ExceptObject)
{
sforcecleint=null;
}
if(sforcecleint != null)
{
if(window.XMLHttpRequest)
{
sforcecleint.appType=GetSForceFFApplicationType();
}
loginresult=sforcecleint.login("xxx@xxx.com","xxx",null);
showmessage(loginresult.toString());
showmessage(sforcecleint.query("Select Id, LastName, FirstName From Contact",null).toString(null));
}
else
{
window.setTimeout(scontrolmain,100,"javascript");
}
}
ERROR : uncaught exception: Permission denied to call method XMLHttpRequest.open
Could someone please explain to me why I can't stop this message in Firefox: uncaught exception: Permission denied to call method XMLHttpRequest.open
I've tried the solution that everyone here suggests (sforceclient.apptype = sforce.application.type.firefox) and thats not helping either.
This is my code:
I've tried the solution that everyone here suggests (sforceclient.apptype = sforce.application.type.firefox) and thats not helping either.
This is my code:
function scontrolmain(IsStatic)
{
try
{
sforcecleint=GetSForceClient();
}
catch(ExceptObject)
{
sforcecleint=null;
}
if(sforcecleint != null)
{
if(window.XMLHttpRequest)
{
sforcecleint.appType=GetSForceFFApplicationType();
}
loginresult=sforcecleint.login("xxx@xxx.com","xxx",null);
showmessage(loginresult.toString());
showmessage(sforcecleint.query("Select Id, LastName, FirstName From Contact",null).toString(null));
}
else
{
window.setTimeout(scontrolmain,100,"javascript");
}
}
Message Edited by Arman on 08-27-2006 06:54 PM
Message Edited by Arman on 08-27-2006 06:54 PM
For every XMLHTTP post to the server there will be an exception. Why I get this error which is a cross domain problem when I run my scontrol on our salesforce account?
Message Edited by Arman on 08-27-2006 08:02 PM
sforceClient.setLoginUrl("{!API_Partner_Server_URL_70}");
var loginResult = sforceClient.Login(Login, password);
sforceClient.setUrl("{!API_Partner_Server_URL_70}");
and cross your finger ;)