Displaying 1 result from an estimated 1 matches for "mytestobject".
2006 Apr 17
0
doing synchronous JSON on rails
...on object to the page:
<jsp:useBean id="JSONRPCBridge" scope="session class="com.metaparadigm.jsonrpc.JSONRPCBridge" />
3) in the jsp, register a json object as an object that can be called
from the javascript of the page
<% JSONRPCBridge.registerObject("myTestObject", aTestObject); %>
4) Register the JSON Servlet
5) Then call the function either async:
jsonrpc.myTestObject.myFunction(myCallBack, "hello");
or sync:
var result = jsonrpc.myTestObject.myFunction("hello");
alert(result);
I would like to know how...