Hi Jerry
Are you looking to see what the webserver returned or what the stringified version of your command looks like? In either case, the typical thing would be to write the response to ogscript.debug which will write to the openGear Debug Information View (Select from "Views" in the main application menu).
For the first one:
var strCommand = JSON.stringify(command);
ogscript.debug('STRING: ' + strCommand);
ogscript.asyncPost("http://localhost:5201", strCommand, null)
For the second one:
var strCommand = JSON.stringify(command);
ogscript.debug('STRING: ' + strCommand);
ogscript.asyncPost("http://localhost:5201", strCommand, function (result)
{
ogscript.debug('RESULT: ' + result);
});
Cheers
James
#DashBoard