SHARE
TWEET

json-wsp test

a guest Oct 18th, 2012 27 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.         <title>Testing the JSON-WSP Client</title>
  5.         <script src="./json2.js" type="text/javascript"></script>
  6.         <script src="./jsonwspclient.js" type="text/javascript"></script>
  7.         <script>
  8.         function load()
  9.         {
  10.                 document.getElementById("demo").innerHTML="Loading...";
  11.                 var client = new JSONWSPClient();
  12.                 client.loadDescription("http://ladonize.org/python-demos/Calculator/jsonwsp/description",function(){
  13.                                                                                                         document.getElementById("demo").innerHTML="LOADED!";
  14.                                                                                                 })
  15.  
  16.         }
  17.         function add()
  18.         {
  19.                 document.getElementById("demo").innerHTML="Adding...";
  20.                
  21.         }
  22.         </script>
  23. </head>
  24. <body>
  25. <p> Testing the JSON-WSP client</p>
  26. <button onclick="load()">Load</button>
  27. <button onclick="add()">Add</button>
  28. <p id="demo"></p>
  29. </body>
  30. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top