+ Start a Discussion
deshandeshan 

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.

 ex:

I have a html page in my desktop with following code

 

 

<html>
<head>
<script language="javascript" type="text/javascript" src="http://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js"></script>
<script>
function setupPage() {
var user = sforceClient.login("name@mail.net", "123");
}
</script>
</head>

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

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

found the solution

http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=7551

All Answers

deshandeshan

found the solution

http://community.salesforce.com/sforce/board/message?board.id=ajax_toolkit&message.id=7551

This was selected as the best answer
riffindusriffindus
Hi,

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.

Thanks

Aariff