airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hes...@apache.org
Subject svn commit: r1404859 - in /airavata/sandbox/client-api-demo/src/main/webapp: index.jsp x_app_descriptor_view.html x_host_descriptor_view.html
Date Fri, 02 Nov 2012 02:17:57 GMT
Author: heshan
Date: Fri Nov  2 02:17:56 2012
New Revision: 1404859

URL: http://svn.apache.org/viewvc?rev=1404859&view=rev
Log:
View app descriptor UI.

Added:
    airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html
Modified:
    airavata/sandbox/client-api-demo/src/main/webapp/index.jsp
    airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view.html

Modified: airavata/sandbox/client-api-demo/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/index.jsp?rev=1404859&r1=1404858&r2=1404859&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/index.jsp (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/index.jsp Fri Nov  2 02:17:56 2012
@@ -16,6 +16,7 @@
             <%--<h4><a href="./execute_app.jsp">Execute an Application</a></h4>--%>
             <br>
             <h4><a href="./x_host_descriptor_view.html">View Host Descriptors
- Jason</a></h4>
+            <h4><a href="./x_app_descriptor_view.html">View App Descriptors -
Jason</a></h4>
 
             <br/>
             <h4><a href="./x_host_descriptor_save_jason.html">Save Host Descriptor
- jason</a></h4>

Added: airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html?rev=1404859&view=auto
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html (added)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html Fri Nov  2
02:17:56 2012
@@ -0,0 +1,55 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+        "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+    <title></title>
+</head>
+<body>
+
+<h1>Get Application Descriptor Information </h1>
+<button name="btn2">Click</button>
+
+<table id="display"></table>
+
+<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
+<script>
+
+    $(document).ready(function(){
+
+        $('[name="btn2"]').click(function(){
+
+            $.ajax({
+                beforeSend: function(x) {
+                    if (x && x.overrideMimeType) {
+                        x.overrideMimeType("application/j-son;charset=UTF-8");
+                    }
+                },
+                type: "GET",
+                dataType: "json",
+                contentType: "application/json;charset=utf-8",
+                url: "http://localhost:7080/airavata-registry-rest-services/registry/api/applicationdescriptor/alldescriptors",
+                success: function(responseData, status, settings) {
+//                    alert(data);
+//                    var data = JSON.stringify(responseData);
+//                    $.each(data, function(key, val) {
+//                        var tr=$('<tr></tr>');
+//                        $.each(val, function(k, v){
+//                            $('<td>'+v+'</td>').appendTo(tr);
+//                        });
+//                        tr.appendTo('#display');
+//                    });
+                },
+                error: function(ajaxrequest, ajaxOptions, thrownError){
+                    alert(thrownError);
+                }
+
+            }).done(function(msg) {
+                        alert( "Data Saved: " + JSON.stringify(msg));
+                    });
+
+        });
+    });
+</script>
+
+</body>
+</html>
\ No newline at end of file

Modified: airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view.html
URL: http://svn.apache.org/viewvc/airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view.html?rev=1404859&r1=1404858&r2=1404859&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_host_descriptor_view.html Fri Nov 
2 02:17:56 2012
@@ -6,7 +6,7 @@
 </head>
 <body>
 
-<h1>Get Host Descritptor Information </h1>
+<h1>Get Host Descriptor Information </h1>
 <button name="btn2">Click</button>
 
 <table id="display"></table>



Mime
View raw message