You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by he...@apache.org on 2012/11/02 16:41:11 UTC

svn commit: r1405013 - /airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html

Author: heshan
Date: Fri Nov  2 15:41:10 2012
New Revision: 1405013

URL: http://svn.apache.org/viewvc?rev=1405013&view=rev
Log:
Displaying the plain json message.

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

Modified: 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=1405013&r1=1405012&r2=1405013&view=diff
==============================================================================
--- airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html (original)
+++ airavata/sandbox/client-api-demo/src/main/webapp/x_app_descriptor_view.html Fri Nov  2 15:41:10 2012
@@ -11,6 +11,9 @@
 
 <table id="display"></table>
 
+<textarea id="jason-text" rows="50" cols="150" placeholder="Describe yourself with 4 words...">
+</textarea>
+
 <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js" type="text/javascript"></script>
 <script>
 
@@ -28,7 +31,7 @@
                 dataType: "json",
                 contentType: "application/json;charset=utf-8",
                 url: "http://localhost:7080/airavata-registry-rest-services/registry/api/applicationdescriptor/alldescriptors",
-                success: function(data, status, settings) {
+                /*success: function(data, status, settings) {
                     var keys=[],result='';
                     $.each(data.applicationDescriptors,function(i,row){
                         $.each(row,function(key,value){
@@ -53,13 +56,14 @@
                     });
                     result+="<\/tbody>";
                     $('#display').html(result);
-                },
+                },*/
                 error: function(ajaxrequest, ajaxOptions, thrownError){
                     alert(thrownError);
                 }
 
             }).done(function(msg) {
                         alert( "Data Saved: " + JSON.stringify(msg));
+                        $("#jason-text").html(JSON.stringify(msg));
                     });
 
         });