Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Javascript is a weakly typed interpreted programming language primarily implemented by web browsers to allow for client-side scripting. It can be used in Visualforce pages to give a more dynamic experience to end users. Additionally, the Visualforce engine generates and uses JavaScript to support the functionality of some of its components.
4
votes
2
answers
7k
views
Apex REST API call from Javascript via Ajax Toolkit
I have created a GET method REST service and trying to Ajax call the service through sforce.connection.remoteFunction from JavaScript. Able to get the Session Id and it hitting the service. … Attaching my Script:
<script type="text/javascript">
window.onload = setupPage;
function setupPage() {
var result = sforce.connection.login("myloginmailid", "pwd+security token");
sforce.connection.init …
4
votes
Accepted
Apex REST API call from Javascript via Ajax Toolkit
Finally i got the solution,
In the sforce.connection.init method we have to pass the "current Session Id" of the organization from which we are requesting,
As responsive mentioned provide space bet …