analyzer/webui/ferret.js
// fetch "canned" demos from the server
fetch "canned" demos from the server
fetch " canned " demos from the server
function loadDemos() {
  $.ajax( {
    url: "http://127.0.0.1:8080/entry-point/getDemoSnippets",
    dataType: "json",
    mimeType: "application/json", 
    success: function (data) {
      console.log(data);
      $("#status").html("Retrieved demo ...");
      loadDemoDropDown(data);
    },
    error: function(xhr, status, error) {
      console.log(xhr);
      $("#status").html("Failed Ajax query...");
      alert("Error: " + xhr.blah);
    } 
  }); 
}
function loadDemos ( ) { $ . ajax ( { url : "http://127.0.0.1:8080/entry-point/getDemoSnippets" , dataType : "json" , mimeType : "application/json" , success : function ( data ) { console . log ( data ) ; $ ( "#status" ) . html ( "Retrieved demo ..." ) ; loadDemoDropDown ( data ) ; } , error : function ( xhr , status , error ) { console . log ( xhr ) ; $ ( "#status" ) . html ( "Failed Ajax query..." ) ; alert ( "Error: " + xhr . blah ) ; } } ) ; }
fetch "canned" demos from the server
fetch " canned " demos from the server