templateForm_parameter = {}; function templateForm_list_category() { $('#result').html(''); $('#content').html(''); $.ajax({ type : 'get', dataType : 'json', url : '../jaxrs/templateform/list/category', xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); } function templateForm_list() { $('#result').html(''); $('#content').html(''); $.ajax({ type : 'get', dataType : 'json', url : '../jaxrs/templateform/list', xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); } function templateForm_init() { $('#result').html(''); $('#content').html(''); var str = ''; str += ''; str += ''; str += ''; str += ''; str += ''; str += '
listWithCategory get concreteFromForm delete
id:
formId:
category:
name:
'; $('#content').html(str); $('#listWithCategory').click(function() { templateForm_listWithCategory($('#category').val()); }); $('#get').click(function() { templateForm_get($('#id').val()); }); $('#concreteFromForm').click(function() { templateForm_concrete($('#formId').val(), $('#category').val(), $('#name').val()); }); $('#delete').click(function() { templateForm_delete($('#id').val()); }); } function templateForm_listWithCategory(category) { $('#result').html(''); $.ajax({ type : 'put', dataType : 'json', url : '../jaxrs/templateform/list/category', contentType : 'application/json; charset=utf-8', xhrFields : { 'withCredentials' : true }, data : JSON.stringify({ category : category }), crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); } function templateForm_get(id) { $('#result').html(''); $.ajax({ type : 'get', dataType : 'json', url : '../jaxrs/templateform/' + id, contentType : 'application/json; charset=utf-8', xhrFields : { 'withCredentials' : true }, crossDomain : true }).always(function(json) { $('#result').html(JSON.stringify(json, null, 4)); }); } function templateForm_create_init() { str = ''; str += ''; str += ''; str += ''; str += ''; str += '
post
name:
category:
alias:
description: