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
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