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
Peter YaoPeter Yao 

sforceClient documentation

Hi all,

I'm new to the AJAX toolkit (and Javascript), but have been getting things working with examples and documentation.

However, I haven't been able to find documentation for sforceClient. For example, I need this code to make my page work in FireFox:
   if (window.XMLHttpRequest) sforceClient.appType = Sforce.Application.Type.FireFox;
   sforceClient.setLoginUrl("https://www.salesforce.com/services/Soap/u/7.0");
   sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}", false);

Do I need to read sforceClient.js to find out what .setLoginURL or .init does? Is there a more friendly place to get that information, or is everything really in http://www.salesforce.com/us/developer/docs/sforce70/wwhelp/wwhimpl/js/html/wwhelp.htm

Thanks,
Peter
Ron HessRon Hess
There is some doc for sforceClient in the Eclipse Toolkit, install this and then go to the help area.
reading the src ( or tracing thru it) is also very educational.