Displaying 1 result from an estimated 1 matches for "metaparadigm".
2006 Apr 17
0
doing synchronous JSON on rails
...ollowing:
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 Servlet
5) Then call the function either async:
jsonr...