Quantcast
Channel: jQuery Plugins - ajax
Viewing all articles
Browse latest Browse all 10

JsonRPC

$
0
0

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":"..."}
        }
});

Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>