<?xml version = "1.0" encoding="utf-8" ?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"DTD/xhtml1-strict.dtd"> | |
<html xmlns = "http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>NDN Get</title> | |
<script type="text/javascript" src="../java_socket_bridge.js"></script> | |
<script type="text/javascript" src="../Helper.js"></script> | |
<script type="text/javascript"> | |
function getAction(){ | |
var connector = new NDN(); | |
var co = connector.get(document.getElementById('interest').value); | |
var output = '<br/> received Content:<br/>' + contentObjectToHtml(co); | |
document.getElementById('result').innerHTML = output; | |
} | |
</script> | |
</head> | |
<body > | |
<form> | |
Please Enter an Interest:<br /> | |
<input id="interest" type="text" name="INTEREST" size="50" value="/" /> | |
</form> | |
<button onclick="getAction()">GET!</button> | |
<div > | |
<applet id="JavaSocketBridge" archive="../JavaSocketBridge.jar" code="JavaSocketBridge.class" width="0" height="0"> | |
</applet> | |
</div> | |
<p id="result"></p> | |
</body> | |
</html> |