blob: 89f15a1fb589bfcfe5aeb64e27c7e5fd1812a1bc [file] [log] [blame]
Jeff Thompsone06b31e2012-09-30 17:19:19 -07001<?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
Jeff Thompsonc3164722012-09-30 18:35:02 -070010 <script type="text/javascript" src="../util/CCNProtocolDTags.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070011
Jeff Thompsonc3164722012-09-30 18:35:02 -070012 <script type="text/javascript" src="../util/CCNTime.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070013
14 <script type="text/javascript" src="../Name.js"></script>
15
16 <script type="text/javascript" src="../ContentObject.js"></script>
17
Jeff Thompsonc3164722012-09-30 18:35:02 -070018 <script type="text/javascript" src="../encoding/DateFormat.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070019
Jeff Thompsone06b31e2012-09-30 17:19:19 -070020 <script type="text/javascript" src="../Interest.js"></script>
21
Jeff Thompsonc3164722012-09-30 18:35:02 -070022 <script type="text/javascript" src="../Key.js"></script>
Jeff Thompsone06b31e2012-09-30 17:19:19 -070023
24 <script type="text/javascript" src="../PublisherID.js"></script>
25
Jeff Thompsone06b31e2012-09-30 17:19:19 -070026 <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
Jeff Thompsone06b31e2012-09-30 17:19:19 -070034 <script type="text/javascript" src="../encoding/BinaryXMLDecoder.js"></script>
35
36 <script type="text/javascript" src="../encoding/DataUtils.js"></script>
37
38 <script type="text/javascript" src="../encoding/EncodingUtils.js"></script>
39
40 <script type="text/javascript" src="../NDN.js"></script>
41
42
43 <script language="JavaScript" type="text/javascript" src="../security/KeyManager.js"></script>
44
45 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn.js"></script>
46 <script language="JavaScript" type="text/javascript" src="../securityLib/jsbn2.js"></script>
47 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa.js"></script>
48 <script language="JavaScript" type="text/javascript" src="../securityLib/rsa2.js"></script>
49
50 <script language="JavaScript" type="text/javascript" src="../securityLib/sha1.js"></script>
51 <script language="JavaScript" type="text/javascript" src="../securityLib/sha256.js"></script>
52 <script language="JavaScript" type="text/javascript" src="../securityLib/sha512.js"></script>
53 <script language="JavaScript" type="text/javascript" src="../securityLib/md5.js"></script>
54 <script language="JavaScript" type="text/javascript" src="../securityLib/ripemd160.js"></script>
55 <script language="JavaScript" type="text/javascript" src="../securityLib/base64.js"></script>
56
57 <script language="JavaScript" type="text/javascript" src="../securityLib/rsapem-1.1.js"></script>
58 <script language="JavaScript" type="text/javascript" src="../securityLib/rsasign-1.2.js"></script>
59 <script language="JavaScript" type="text/javascript" src="../securityLib/asn1hex-1.1.js"></script>
60 <script language="JavaScript" type="text/javascript" src="../securityLib/x509-1.1.js"></script>
61
62
63 <script type="text/javascript">
64 function run(){
65 var contentName = document.getElementById('contentname').value;
66 var content = document.getElementById('content').value;
67
68 var connector = new NDN();
69 var result = connector.put( contentName, content );
70
71 document.getElementById('result').innerHTML = 'Content \'' + content +
72 '\' was published with content name \'' + contentName +'\'. Result:<br/>' +
73 result;
74 }
75
76 </script>
77
78</head>
79<body >
80 <form>
81 <div>
82 <p>Please Enter a Content Name:</p>
83
84 <input id="contentname" type="text" name="CONTENTNAME" value="/demo/message" />
85
86 <p>Please Enter the Content:</p>
87
88 <textarea id="content" cols="40" rows="5" name="CONTENT" >This works!</textarea>
89
90 <br />
91 </div>
92 </form>
93 <div>
94 <button onclick="run()">PUT!</button>
95 </div>
96 <div >
97 <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
98 </applet>
99 </div>
100
101 <p id="result"></p>
102
103</body>
104</html>