summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2011-03-29 18:26:07 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2011-03-29 18:26:07 +0000
commitc6297b85e1e6e88dafd19d284bb4b7c1d8466c57 (patch)
tree04cc8889488854d9a2b04549e55340f9bd983402 /sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html
parent7c6da5191ac78103fb5bab26a8c1d0c6240b062b (diff)
Simple strawman to provide some management rest services for nodes.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1086674 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html')
-rw-r--r--sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html90
1 files changed, 90 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html b/sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html
new file mode 100644
index 0000000000..7a06a63872
--- /dev/null
+++ b/sca-java-2.x/trunk/modules/node-manager/src/test/resources/ui/index.html
@@ -0,0 +1,90 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Tuscany Extensions</title>
+
+<script type="text/javascript" src="/dojo/dojo.js"></script>
+<script type="text/javascript" src="util.js"></script>
+<script type="text/javascript" src="elemutil.js"></script>
+<script type="text/javascript" src="xmlutil.js"></script>
+<script type="text/javascript" src="atomutil.js"></script>
+<script type="text/javascript" src="scdl.js"></script>
+<script type="text/javascript" src="ui.js"></script>
+<script type="text/javascript" src="component.js"></script>
+<script type="text/javascript" src="graph.js"></script>
+
+<style type="text/css">
+body,html {
+ font-family: helvetica, arial, sans-serif;
+ font-size: 90%;
+}
+</style>
+
+
+</head>
+
+<body>
+
+<div id="bodydiv" style="position: absolute; top: 0px; left: 0px; right: 0px;">
+
+<div style="position:absolute; top: 40px; left: 240px; right: 0px; height: 5000px;">
+<iframe id="dataFrame" class="databg" style="position: relative; height: 5000px; width: 100%; border: 0px;" scrolling="no" frameborder="0"></iframe>
+</div>
+
+</div>
+
+
+
+
+<script type="text/javascript">
+ dojo.require("dojox.xml.parser");
+ dojo.require("tuscany.RestService");
+
+ var composite;
+
+ function composite_getResponse(xmlResponse, exception) {
+ if(exception){
+ alert(exception.message);
+ return;
+ }
+
+ /*
+ var itemTags = xmlResponse.getElementsByTagName ("component");
+ for (i = 0; i < itemTags.length; i++) {
+ var attributes = itemTags[i].attributes;
+ alert(attributes[0].name);
+ var recordNode = itemTags[i].getElementsByTagName ("name")[0];
+ if (recordNode.textContent != undefined) {
+ alert(recordNode.textContent);
+ }
+ else {
+ alert(recordNode.text);
+ }
+ }
+ */
+
+ composite = dojox.xml.parser.innerXML(xmlResponse);
+
+
+ alert(composite);
+
+ }
+
+
+ var restClient = new tuscany.RestService("http://localhost:8080/domain","text/plain");
+ restClient.get("default").addCallback(composite_getResponse);
+
+ // Create editor graph area
+ var g = graph.mkgraph(graph.mkpath().move(0,40), 'Domain', 'propValue');
+ var bg = graph.mkgroup(graph.mkpath());
+
+ graph.edit(name, composite, graph.composite('domain', graph.mkpath().move(palcx,0)), oncomposchange, oncompselect, g);
+ //graph.composite('domain', graph.mkpath().move(palcx,0));
+
+
+
+</script>
+</body>
+
+</html> \ No newline at end of file