applicationServers_parameter = {}; function applicationServers_list() { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', contentType : 'application/json; charset=utf-8', url : '../jaxrs/applicationservers', xhrFields : { 'withCredentials' : true }, crossDomain : true }).done(function(json) { $('#result').html(JSON.stringify(json, null, 4)); if (json.type == 'success') { if (json.data) { var str = ''; str += ''; $.each(json.data, function(index, o) { str += ''; str += ''; str += ''; str += ''; str += ''; str += ''; str += ''; str += '' str += ''; str += ''; str += '' str += ''; str += ''; str += ''; str += ''; }); str += '
ordernamehostportusernameoperate
' + o.order + '' + o.name + '' + o.host + '' + o.port + '' + o.username + 'edit '; str += 'delete'; str += '
' + o.status + ''; if (o.message) { str += o.message; } else { str += ' '; } str += '
planList'; if (o.planList) { $.each(o.planList, function(idx, p) { str += ''; }) } str += '
nameweight
' + p.name + '' + p.weight + '
'; str += 'deploy '; str += 'redeploy'; str += '
'; $('#content').html(str); } } else { failure(json); } }); }