onreaderror

種類イベント
書式 コマンドオブジェクト.onreaderror = イベントハンドラ
解説
標準エラー出力にデータが出力された場合に発生するイベントです。
サンプルコード
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Sample</title>
<style type="text/css"><!--
body { margin:0px; }
form { position:absolute; top:10;left:10px; }
--></style>
<script type="text/javascript"><!--
window.onload = function()
{
cmdObj = widget.system("cat aaa",endFunc);
cmdObj.onreaderror = err;
}
function err(stdErr)
{
document.getElementById("txtField").value = "ERR:"+stdString;
}
function endFunc()
{
}
// --></script>
</head>
<body>
<img src="Default.png">
<form>
<textarea id="txtField" rows="7" cols="32"></textarea><br>
</form>
</body>
</html>
実際のスクリプトをダウンロード