jeff | f1ba4b7 | 2012-09-03 15:20:01 -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 Get</title>
|
| 8 | <script type="text/javascript" src="../java_socket_bridge.js"></script>
|
| 9 |
|
Jeff Thompson | 38422f4 | 2012-11-15 00:20:39 -0800 | [diff] [blame] | 10 | <script type="text/javascript" src="../Helper.js"></script>
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 11 |
|
| 12 | <script type="text/javascript">
|
| 13 |
|
| 14 | function getAction(){
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 15 | var connector = new NDN();
|
| 16 | var co = connector.get(document.getElementById('interest').value);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 17 |
|
Jeff Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 18 | var output = '<br/> received Content:<br/>' + contentObjectToHtml(co);
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 19 |
|
| 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 Thompson | e06b31e | 2012-09-30 17:19:19 -0700 | [diff] [blame] | 30 | <input id="interest" type="text" name="INTEREST" size="50" value="/" />
|
jeff | f1ba4b7 | 2012-09-03 15:20:01 -0700 | [diff] [blame] | 31 | </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>
|