airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1411395 - in /airavata/sandbox/client-api-demo/src/main/webapp: js/x_workflow_monitor.js x_workflow_monitor.html
Date Mon, 19 Nov 2012 20:22:52 GMT
Author: heshan
Date: Mon Nov 19 20:22:50 2012
New Revision: 1411395

URL: http://svn.apache.org/viewvc?rev=1411395&view=rev
Log:
Provanence information.

Modified:
    airavata/sandbox/client-api-demo/src/main/webapp/js/x_workflow_monitor.js
    airavata/sandbox/client-api-demo/src/main/webapp/x_workflow_monitor.html

Modified: airavata/sandbox/client-api-demo/src/main/webapp/js/x_workflow_monitor.js
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/js/x_workflow_monitor.js?rev=1411395&r1=1411394&r2=1411395&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/js/x_workflow_monitor.js (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/js/x_workflow_monitor.js Mon Nov 19 20:22:50
2012
@@ -37,7 +37,31 @@ $(document).ready(function(){
             }
 
         }).done(function(msg) {
-                $("#json-text").html(JSON.stringify(msg));
+                $("#experiment-list").html(JSON.stringify(msg));
+            });
+
+    });
+
+    $('[name="btn3"]').click(function(){
+        var experimentId = $("#experimentId1").val();
+
+        $.ajax({
+            beforeSend: function(x) {
+                if (x && x.overrideMimeType) {
+                    x.overrideMimeType("application/j-son;charset=UTF-8");
+                }
+            },
+            type: "GET",
+            dataType: "json",
+            data : {experimentId : experimentId},
+            contentType: "application/json;charset=utf-8",
+            url: "http://localhost:7080/airavata-rest-services/registry/api/provenanceregistry/get/experiment",
+            error: function(ajaxrequest, ajaxOptions, thrownError){
+                alert(thrownError);
+            }
+
+        }).done(function(msg) {
+                $("#experiment-data").html(JSON.stringify(msg));
             });
 
     });

Modified: airavata/sandbox/client-api-demo/src/main/webapp/x_workflow_monitor.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_workflow_monitor.html?rev=1411395&r1=1411394&r2=1411395&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_workflow_monitor.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_workflow_monitor.html Mon Nov 19 20:22:50
2012
@@ -28,12 +28,19 @@
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
 <script type="text/javascript" src="js/x_workflow_monitor.js" ></script>
 
-<h1>Get Host Descriptor Information </h1>
+<h1>Get Experiment IDs</h1>
 <button name="btn2">Click</button>
 
 <table id="display"></table>
 
-<textarea id="json-text" rows="5" cols="150" placeholder="Experiment List">
+<textarea id="experiment-list" rows="5" cols="150" placeholder="Experiment List">
+</textarea>
+
+<h1>Get Experiment Data</h1>
+Experiment ID : <input type="text" name="experimentId" id="experimentId1" size="75"><br/>
+<button name="btn3">Click</button>
+
+<textarea id="experiment-data" rows="5" cols="150" placeholder="Experiment Data">
 </textarea>
 
 </body>



Mime
View raw message