+ Start a Discussion
BachiBachi 

'sforceClient' Undefined

While I trying to get loginId by using
sforceClient.login("{!API_Session_ID}","{!API_Partner_Server_URL_60}")

its giving error,

sforceClient is undefined.

please clear my error.

Thanks
Ron HessRon Hess
do you include the AJAX toolkit in your script ?
is your script running as an S-Control from within salesforce or is it a static HTML page on the hard disk?
BachiBachi
I dint include AJAX toolkit to javascript code.
my script running as an S-Control from within salesforce.

let me know where i have to include AJAX toolkit in my JavaScript.

Thanks
ChitraChitra



Add this to the script before you access the sforceClient


Thanks,
chitra
Ron HessRon Hess
please read this very well written intro:
http://blog.sforce.com/sforce/2005/07/ajax_toolkit.html

then download the helloworld code example, this is a quick way to start.