distribute_parameter = {}; function distribute_init() { $('#content').html(''); $('#result').html(''); var str = ''; str += ''; str += ''; str += '
assemble webServerAssemble
source
'; $('#content').html(str); $('#assemble').click(function() { distribute_assemble($('#source').val()); }); $('#webServerAssemble').click(function() { distribute_webServerAssemble($('#source').val()); }); } function distribute_assemble(source) { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', contentType : 'application/json; charset=utf-8', url : '../jaxrs/distribute/assemble/source/' + source, xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); } function distribute_webServerAssemble(source) { $('#content').html(''); $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', contentType : 'application/json; charset=utf-8', url : '../jaxrs/distribute/webserver/assemble/source/' + source, xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); }