I am still facing the problem of getting the data from the server using the salesforce's REST api. My question is: If I have an URL to the JSON data is it possible to get the data using some specific method on a click event ?
Best regards
I am still facing the problem of getting the data from the server using the salesforce's REST api. My question is: If I have an URL to the JSON data is it possible to get the data using some specific method on a click event ?
Best regards
Assuming you have run through.
http://www.salesforce.com/us/developer/docs/api_rest/
We use Jquery and click event fired from that.
i.e Something like this.
$.ajax({
type: "POST",
url: url,
data: data,
success: success,
dataType: dataType
});
A better example though I could find on the web and showing Salesforce Rest API and Jquery is here. even though it is in a Chrome Extension it shows clearly the process for using REST API with Jquery.
http://www.anupshinde.com/posts/salesforce-rest-api-chrome-extension/
hths