JsonRPC
A simple JsonRPC client library
Example 1
$.JsonRPC.request ("http://xxx.xxx.xxx/jsonrpcServer", method, params, {
success: function (response) {
// {"id":1,"result":"...","error":null}
},
error: function (response) {
// {"id":1,"result":null,"error":"..."}
}
});
Example 2
$.JsonRPC.endPoint = "http://xxx.xxx.xxx/jsonrpcServer";
$.JsonRPC.request (null, method, params, {
success: function (response) {
// {"id":1,"result":"...","error":null}
},
error: function (response) {
// {"id":1,"result":null,"error":"..."}
}
});