Author: antelder
Date: Fri Apr 21 04:45:52 2006
New Revision: 395862
URL: http://svn.apache.org/viewcvs?rev=395862&view=rev
Log:
Start tidying up the jsonrpc binding
Removed:
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/helloworld.js
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/test/java/org/apache/tuscany/samples/helloworldjsonrpc/
Modified:
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
Modified:
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html?rev=395862&r1=395861&r2=395862&view=diff
==============================================================================
---
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
(original)
+++
incubator/tuscany/java/samples/helloworld/helloworldjsonrpc/src/main/webapp/HelloWorldJSONRPC.html
Fri Apr 21 04:45:52 2006
@@ -1,27 +1,33 @@
<html>
<head>
+ <title>Tuscany JSON-RPC HelloWorld Example</TITLE>
+
<script type="text/javascript" src="SCA/scripts/sca.js"></script>
- <script type="text/javascript" src="helloworld.js"></script>
- <TITLE>Tuscany HelloWorld JSON-RPC Example</TITLE>
- </head>
- <body>
- <h2>Tuscany HelloWorld JSON-RPC Example</h2>
+ <script language="JavaScript">
+ function getGreeting() {
+ var name = document.getElementById("name").value;
+ var result = SCA.HelloWorldService.getGreetings(name);
+ document.getElementById('greeting').innerHTML=result;
+ }
+ </script>
+ </head>
- <P> </P>
+ <body>
+ <h2>Tuscany JSON-RPC HelloWorld Example</h2><br>
+
<p>
Name please:
<input type="text" id="name" size="30" value="World" />
+
<br><BR>
+
<input type="button" value="Submit" onclick="getGreeting()" />
</p>
-
- <br>
- <hr>
-
- Response:
- <input type="text" id="greeting" size="40" readonly/>
-
+
+ <br><hr>
+ <div id='greeting'></div>
+
</body>
</html>