• nhebb
  • NEWBIE
  • 0 Points
  • Member since 2007

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

Yesterday the main www.salesforce.com site was down periodically.  Because of this, our S-Controls were encountering javascript errors ...presumably because the javascript source file is linked as follows: https://www.salesforce.com/services/lib/ajax/beta3.3/sforceclient.js

Are there alternate locations for this file that can be used to avoid this scenario?  I've tried the na2 server but the file does not appear to be there.

Any help would be appreciated,

 

John

    hi . i am trying to login into salesforce using new ajax toolkit.
 but i could not get login.

 this is the code i am tried.
<html>
<head>
<script src="https://na1.salesforce.com/soap/ajax/8.0/connection.js" type="text/javascript"></script>
<script>

 function login()
 {
    try
    {
    sforce.connection.login("username","password");
    result = sforce.connection.query("Select Name, Id from Account");
    records = result.getArray("records");
    for (var i=0; i<records.length; i++)
    {
    var record = records[i];
    alert(record.Name + " -- " + record.Id);
    }
    }
    catch(e)
    {
     alert(e);
    }

 }

</script>
</head>
29
<body onload="login()">
<div id="output"></div>
</body>
</html>

BUT i GET This Exception
 "NS_ERROR_FILE_UNRECOGNIZED_PATH"

 if i am using this url "<script src="/soap/ajax/8.0/connection.js" type="text/javascript"></script>"
 
i got error like sforce is not defined.

plz any one help me  out.
regards prasad.

Message Edited by DevAngel on 03-15-2007 01:05 PM