HTML/js/ai-admin.js
// ping a network, check for compatibility
ping a network, check for compatibility
ping a network check for compatibility
function ping()
{
   let options = {};
   options.businessNetwork = businessNetwork;
   $.when($.post('/composer/admin/ping', options)).done(function (_results){
       let _str = '';
       _str +='<h2>network ping request to '+businessNetwork+'</h2>';
       _str += '<h4>Ping request results: '+'</h4><table width="90%"><tr><th>Item</th><th width="65%">Value</th></tr>';
       for (let each in _results.ping){
           (function(_idx, _arr){
               _str+='<tr><td>'+_idx+'</td><td>'+_arr[_idx]+'</td></tr>';
            })(each, _results.ping);
        }
       _str+='</table>';
       $('#admin-forms').empty();
       $('#admin-forms').append(_str);
   });
}
function ping ( ) { let options = { } ; options . businessNetwork = businessNetwork ; $ . when ( $ . post ( '/composer/admin/ping' , options ) ) . done ( function ( _results ) { let _str = '' ; _str += '<h2>network ping request to ' + businessNetwork + '</h2>' ; _str += '<h4>Ping request results: ' + '</h4><table width="90%"><tr><th>Item</th><th width="65%">Value</th></tr>' ; for ( let each in _results . ping ) { ( function ( _idx , _arr ) { _str += '<tr><td>' + _idx + '</td><td>' + _arr [ _idx ] + '</td></tr>' ; } ) ( each , _results . ping ) ; } _str += '</table>' ; $ ( '#admin-forms' ) . empty ( ) ; $ ( '#admin-forms' ) . append ( _str ) ; } ) ; }
ping a network, check for compatibility
ping a network check for compatibility