blob: e4709f6bd5b412f7d250f7480590f42cb703d2a7 [file] [log] [blame]
jefff1ba4b72012-09-03 15:20:01 -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 Get</title>
8 <script type="text/javascript" src="../java_socket_bridge.js"></script>
9
Jeff Thompson38422f42012-11-15 00:20:39 -080010 <script type="text/javascript" src="../Helper.js"></script>
jefff1ba4b72012-09-03 15:20:01 -070011
12 <script type="text/javascript">
13
14 function getAction(){
Jeff Thompsone06b31e2012-09-30 17:19:19 -070015 var connector = new NDN();
16 var co = connector.get(document.getElementById('interest').value);
jefff1ba4b72012-09-03 15:20:01 -070017
Jeff Thompsone06b31e2012-09-30 17:19:19 -070018 var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
jefff1ba4b72012-09-03 15:20:01 -070019
20 document.getElementById('result').innerHTML = output;
21 }
22
23 </script>
24
25</head>
26<body >
27
28 <form>
29 Please Enter an Interest:<br />
Jeff Thompsone06b31e2012-09-30 17:19:19 -070030 <input id="interest" type="text" name="INTEREST" size="50" value="/" />
jefff1ba4b72012-09-03 15:20:01 -070031 </form>
32
33 <button onclick="getAction()">GET!</button>
34
35 <div >
36 <applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0">
37 </applet>
38 </div>
39
40 <p id="result"></p>
41
42</body>
43</html>