• deshan
  • NEWBIE
  • 24 Points
  • Member since 2010

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

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
  • February 10, 2010
  • Like
  • 0

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
  • February 10, 2010
  • Like
  • 0