12.07.2015 Views

JSON-RPC - Custom Training Courses - Coreservlets.com

JSON-RPC - Custom Training Courses - Coreservlets.com

JSON-RPC - Custom Training Courses - Coreservlets.com

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Registering <strong>RPC</strong> Client inBrowser: Examplevar rpcClient;window.onload = function() {rpcClient = new <strong>JSON</strong>RpcClient("<strong>JSON</strong>-<strong>RPC</strong>");}This is relative URL. This example assumesthat page is in top level of Web application. Ifit was in subfolder, you would use ../<strong>JSON</strong>-<strong>RPC</strong>. If you used this from pages scattered invarious subfolders at different levels, youcould do /appName/<strong>JSON</strong>-<strong>RPC</strong>.19© 2010 Marty HallMaking SynchronousRemote Calls<strong>Custom</strong>ized Java EE <strong>Training</strong>: http://courses.coreservlets.<strong>com</strong>/Servlets, JSP, JSF 2.0, Struts, Ajax, GWT 2.0, Spring, Hibernate, SOAP & RESTful Web Services, Java 6.Developed and taught by well-known author and developer. At public venues or onsite at your location.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!