Displaying 1 result from an estimated 1 matches for "jsonrpcbridg".
Did you mean:
jsonrpcbridge
2006 Apr 17
0
doing synchronous JSON on rails
...nd in order to make
synchronous calls I had to do the following:
1) include json.js
<script type="text/javascript" src="jsonrpc.js">
<script type="text/javascript" src="myapp.js">
2) add the json 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...