Here is the sample code for it: and here is the java script function
2012
-  
 -  
 -  
public class simpleHTTPCallOut {public simpleHTTPCallOut(ApexPages.StandardController controller) { } String ErrorMessage; public void Login() { ErrorMessage=”; final string baseUrl = ‘https://login.salesforce.com/‘; final string username = ‘[email protected]’; final string password = ‘test@123’; …
 -  
Example : var json = ‘{“result”:true,”count”:1}’,obj = JSON.parse(json); alert(obj.count); For the browsers that don’t you can implement it using json2.js.
 -  
function getQueryStringValue(key, default_){ if (default_==null) default_=””; key = key.replace(/[\[]/,”\\\[“).replace(/[\]]/,”\\\]”); var regex = new RegExp(“[\\?&]”+key+”=([^&#]*)”); var qs = regex.exec(window.location.href); if(qs == null) return default_; else return qs[1];}The getQueryStringValue function is simple …
 -  
Assume we have a fairly complex JavaScript object defined using literal notation: var obj1 = { b1: true, s1: “text string”, n1: 12345, n2: null, n3: undefined, a1: [ 1,1,2,3,5,8, …
 -  
JSON-js – JSON in JavaScript. To convert an object to JSON, use JSON.stringify: var json_text = JSON.stringify(your_object, null, 2); To convert a JSON string to a JS object, use JSON.parse: …
 -  
Source : http://techsahre.blogspot.in/2011/01/simple-paypal-integration-with.html
 -  
Source : http://techsahre.blogspot.in/2011/01/ruby-and-salesforce-integration-with.html
 -  
APEX CLASS: public class TestMapController{ public map data {get;set;} public TestMapController(){ data = new map(); for(Account acc: [Select Id, Name, (Select Id, Name, Email from Contacts), Phone from …