• pabzsarquilla
  • NEWBIE
  • 0 Points
  • Member since 2009

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 2
    Replies

hi,

 

Before anything, I want state that I'm new to Salesforce so any opinion is appreciated. I'm in these project on connecting to Salesforce account for Palm Pre that I think only uses Javascript . I saw several example in using WSDL using Java, .NET, PHP and even Coldfusion but none for just Javascript. Regarding with this thread.. http://community.salesforce.com/sforce/board/message?board.id=general_development&view=by_date_ascending&message.id=17838 , its possible if you can proxy the WSDL which is may not be the best way if the app needs to be flexible to just accept credentials and start accessing the Salesforce account and objects.

 

In the bright side, I also saw this link.. http://lg3d.blogspot.com/2009/07/salesforce-palm-pre.html saying he've done means theres some possiblity for these.

 

So can anyone please guide me to which path to take?

 

Thanks,

Pabz

have anyone tried converting WSDL to javascript? I tried using Apache CXF but not that successful..help please

Hi,

 

I'm trying to create a web page that connects to one of salesforce tables and will be run in Palm WebOS. I'm confuse in which should use..WSDL or Apex Ajax?

 

Maybe some sample how to login would be great..thanks

hi,

 

 can someone pls guide me on how to start my own website that displays contact table? i'm starting with simple login using my local machine with xampp using these javascript "/soap/ajax/17.0/connection.js", but not successful.

 

Thanks

hi,

 

I'm a newbie to salesforce have a little experience with javascript. I wanted to create an html with javascript to access the database from my salesforce account using the code below that i got from ajax synchronous example. I'm debugging using firefox error console and firebug. and after clicking the button it says "err.faultcode is undefined".

Can anyone help me please? 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title></title>

<script language="javascript" type="text/javascript" src="http://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js"></script>
<script language="javascript" type="text/javascript" src="/soap/ajax/17.0/connection.js"></script>
<script language="javascript" type="text/javascript">
    function xtest(){
    sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}");
   
    }


    function test(){
        try{
            {!requireScript("/soap/ajax/17.0/connection.js")}                
            var username = "pabz.sarquilla@gmail.com";
            var password = "8KoJeKjRBYNLMxxUBUL1EzFky6NoQ4KQT7Wh8qb5r5aJ1";
            var result = sforce.connection.login( username, password );
           
                log("logged in with session id " + result.sessionId);
               
        }catch(error) {
       
            if (error.faultcode.indexOf("INVALID_LOGIN") != -1) {
                log("check your username and passwd, invalid login");
            } else {
                log(error);
            }   
        }   
    }
   
    function log(message) {
        alert(message);
    }

</script>
</head>
<body>
    <input type="button" onclick="test()" value="test" />
</body>
</html>

 

 

 

-  Thanks in advance.

 

hi,

 

Before anything, I want state that I'm new to Salesforce so any opinion is appreciated. I'm in these project on connecting to Salesforce account for Palm Pre that I think only uses Javascript . I saw several example in using WSDL using Java, .NET, PHP and even Coldfusion but none for just Javascript. Regarding with this thread.. http://community.salesforce.com/sforce/board/message?board.id=general_development&view=by_date_ascending&message.id=17838 , its possible if you can proxy the WSDL which is may not be the best way if the app needs to be flexible to just accept credentials and start accessing the Salesforce account and objects.

 

In the bright side, I also saw this link.. http://lg3d.blogspot.com/2009/07/salesforce-palm-pre.html saying he've done means theres some possiblity for these.

 

So can anyone please guide me to which path to take?

 

Thanks,

Pabz

hi,

 

I'm a newbie to salesforce have a little experience with javascript. I wanted to create an html with javascript to access the database from my salesforce account using the code below that i got from ajax synchronous example. I'm debugging using firefox error console and firebug. and after clicking the button it says "err.faultcode is undefined".

Can anyone help me please? 

 

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

<html>

<head>
<title></title>

<script language="javascript" type="text/javascript" src="http://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js"></script>
<script language="javascript" type="text/javascript" src="/soap/ajax/17.0/connection.js"></script>
<script language="javascript" type="text/javascript">
    function xtest(){
    sforceClient.init("{!API_Session_ID}", "{!API_Partner_Server_URL_70}");
   
    }


    function test(){
        try{
            {!requireScript("/soap/ajax/17.0/connection.js")}                
            var username = "pabz.sarquilla@gmail.com";
            var password = "8KoJeKjRBYNLMxxUBUL1EzFky6NoQ4KQT7Wh8qb5r5aJ1";
            var result = sforce.connection.login( username, password );
           
                log("logged in with session id " + result.sessionId);
               
        }catch(error) {
       
            if (error.faultcode.indexOf("INVALID_LOGIN") != -1) {
                log("check your username and passwd, invalid login");
            } else {
                log(error);
            }   
        }   
    }
   
    function log(message) {
        alert(message);
    }

</script>
</head>
<body>
    <input type="button" onclick="test()" value="test" />
</body>
</html>

 

 

 

-  Thanks in advance.