| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- application_parameter = {};
- function application_get_init() {
- str = '<table border="1" width="100%">';
- str += '<tr><td colspan="2"><a href="#" id="get">get</a> <a href="#" id="getIcon">getIcon</a></td></tr>';
- str += '<tr><td>flag:</td><td><input type="text" id="flag" style="width:95%"/></td></tr>';
- str += '</table>';
- $('#content').html(str);
- $('#result').html('');
- $('#get').click(function() {
- application_get($('#flag').val());
- });
- $('#getIcon').click(function() {
- application_getIcon($('#flag').val());
- });
- }
- function application_get(flag) {
- $('#content').html('');
- $('#result').html('');
- $.ajax({
- type : 'get',
- dataType : 'json',
- url : '../jaxrs/application/' + flag,
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).always(function(json) {
- $('#result').html(JSON.stringify(json, null, 4));
- });
- }
- function application_getIcon(flag) {
- $('#content').html('');
- $('#result').html('');
- $.ajax({
- type : 'get',
- dataType : 'json',
- url : '../jaxrs/application/' + flag,
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).always(function(json) {
- $('#result').html(JSON.stringify(json, null, 4));
- });
- }
- function application_listWithPerson() {
- $('#content').html('');
- $('#result').html('');
- $.ajax({
- type : 'get',
- dataType : 'json',
- url : '../jaxrs/application/list',
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).always(function(json) {
- $('#result').html(JSON.stringify(json, null, 4));
- });
- }
- function application_listWithPersonComplex() {
- $('#content').html('');
- $('#result').html('');
- $.ajax({
- type : 'get',
- dataType : 'json',
- url : '../jaxrs/application/list/complex',
- xhrFields : {
- 'withCredentials' : true
- },
- crossDomain : true
- }).always(function(json) {
- $('#result').html(JSON.stringify(json, null, 4));
- });
- }
|