Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (38 sloc) 0.938 kb
<title>Testing html-json library</title>
<script src="jsolait/jsolait.js"></script>
var serviceURL = "json_sample.yaws";
var methods = [ "test1" ];
var jsonrpc = imprt("jsonrpc");
var service = new jsonrpc.ServiceProxy(serviceURL, methods);
function test() {
try {
foo = document.getElementById('foo').value;
bar = document.getElementById('bar').value;
document.getElementById('result').innerHTML =
"<PRE>" + service.test1(foo, bar) + "</PRE>";
} catch(e) {
return false;
<form action="" method="post" onSubmit="return test()">
<div id="result">
First Argument: <input id="foo" />
Second Argument: <input id="bar"/>
<input type="submit" value="Do JSON-RPC call"/>
Jump to Line
Something went wrong with that request. Please try again.