Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 1 | <?xml version = "1.0" encoding="utf-8" ?>
|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
| 3 | "DTD/xhtml1-strict.dtd">
|
| 4 | <html xmlns = "http://www.w3.org/1999/xhtml">
|
| 5 |
|
| 6 | <head>
|
| 7 | <title>NDN Put</title>
|
| 8 | <script type="text/javascript" src="../java_socket_bridge.js"></script>
|
| 9 |
|
| 10 | <script type="text/javascript" src="../CCNProtocolDTags.js"></script>
|
| 11 |
|
| 12 | <script type="text/javascript" src="../CCNTime.js"></script>
|
| 13 |
|
| 14 | <script type="text/javascript" src="../Name.js"></script>
|
| 15 |
|
| 16 | <script type="text/javascript" src="../ContentObject.js"></script>
|
| 17 |
|
| 18 | <script type="text/javascript" src="../DateFormat.js"></script>
|
| 19 |
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 20 | <script type="text/javascript" src="../Interest.js"></script>
|
| 21 |
|
| 22 | <script type="text/javascript" src="../KeyLocator.js"></script>
|
| 23 |
|
| 24 | <script type="text/javascript" src="../PublisherID.js"></script>
|
| 25 |
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 26 | <script type="text/javascript" src="../PublisherPublicKeyDigest.js"></script>
|
| 27 |
|
| 28 | <script type="text/javascript" src="../FaceInstance.js"></script>
|
| 29 |
|
| 30 | <script type="text/javascript" src="../ForwardingEntry.js"></script>
|
| 31 |
|
| 32 | <script type="text/javascript" src="../encoding/BinaryXMLEncoder.js"></script>
|
| 33 |
|
| 34 | <script type="text/javascript" src="../encoding/BinaryXMLCodec.js"></script>
|
| 35 |
|
| 36 | <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
|
| 37 |
|
| 38 | <script type="text/javascript" src="../encoding/DataUtils.js"></script>
|
| 39 |
|
| 40 | <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
|
| 41 |
|
| 42 | <script type="text/javascript" src="../NDN.js"></script>
|
| 43 |
|
| 44 |
|
| 45 | <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
|
| 46 |
|
| 47 | <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
|
| 48 | <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
|
| 49 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
|
| 50 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
|
| 51 |
|
| 52 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
|
| 53 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
|
| 54 | <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
|
| 55 | <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
|
| 56 | <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
|
| 57 | <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
|
| 58 |
|
| 59 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
|
| 60 | <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
|
| 61 | <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
|
| 62 | <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
|
| 63 |
|
| 64 |
|
| 65 | <script type="text/javascript">
|
| 66 | function run(){
|
| 67 | var contentName = document.getElementById('contentname').value;
|
| 68 | var content = document.getElementById('content').value;
|
| 69 |
|
| 70 | var connector = new NDN();
|
| 71 | var result = connector.put( contentName, content );
|
| 72 |
|
| 73 | document.getElementById('result').innerHTML = 'Content \'' + content +
|
| 74 | '\' was published with content name \'' + contentName +'\'. Result:<br/>' +
|
| 75 | result;
|
| 76 | }
|
| 77 |
|
| 78 | </script>
|
| 79 |
|
| 80 | </head>
|
| 81 | <body >
|
| 82 | <form>
|
| 83 | <div>
|
| 84 | <p>Please Enter a Content Name:</p>
|
| 85 |
|
| 86 | <input id="contentname" type="text" name="CONTENTNAME" value="/demo/message" />
|
| 87 |
|
| 88 | <p>Please Enter the Content:</p>
|
| 89 |
|
| 90 | <textarea id="content" cols="40" rows="5" name="CONTENT" >This works!</textarea>
|
| 91 |
|
| 92 | <br />
|
| 93 | </div>
|
| 94 | </form>
|
| 95 | <div>
|
| 96 | <button onclick="run()">PUT!</button>
|
| 97 | </div>
|
| 98 | <div >
|
| 99 | <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
|
| 100 | </applet>
|
| 101 | </div>
|
| 102 |
|
| 103 | <p id="result"></p>
|
| 104 |
|
| 105 | </body>
|
| 106 | </html> |