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

AJAX toolkit connection question

Hi I am very new to salesforce.

My question is can I establish a connection using AJAX toolkit from outside html page.


I have a html page in my desktop with following code



<script language="javascript" type="text/javascript" src=""></script>
function setupPage() {
var user = sforceClient.login("", "123");

<body onload=setupPage()>
<div id=userNameArea>

 Butthe code does not seem to be working. Not establish the connection


Any help?




Message Edited by deshan on 02-09-2010 10:41 PM
Best Answer chosen by Admin (Salesforce Developers) 

found the solution

All Answers


found the solution

This was selected as the best answer

the link is not working. i am trying to set it up but it now working for me.

can you please update me the solution or new link to the solution.