+ Start a Discussion
KunlunKunlun 

Is it possible to use other instance login info in VF page ajax connection?

Hi All,

 

I need to make some ajax code in a visual force page, that user can input username, password and security token to login and made some query in the instance.

 

My ajax code is like below:
        var result = sforce.connection.login(strUserName, strPassword + strSecurityToken);

 

I can login successfully with the login info in current instance, but failed with other instantce login info.

 

Is it possible to login with other instance login info?

 

Thanks

Kunlun