Javascript rrdFlotAsync和realtime

Javascript rrdFlotAsync和realtime,javascript,rrd,Javascript,Rrd,我试图在实时更新超时时调用rrdFlotAsnc,我总是收到一个异常: 0x80004005…FetchBinaryURLAsync::…数据:否 没有定时器,一切正常,所以我有点困惑 我使用了调试器,但我更困惑: 我的代码: if ( typeof (f) == 'undefined' ) { var f=new rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops); } el

我试图在实时更新超时时调用
rrdFlotAsnc
,我总是收到一个异常:

0x80004005…FetchBinaryURLAsync::…数据:否

没有定时器,一切正常,所以我有点困惑

我使用了调试器,但我更困惑:

我的代码:

 if ( typeof (f) == 'undefined' ) {
   var f=new rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops);
 } else {
     f= rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops);
  }
每次,程序都会跳入这两种情况????但是为什么呢??这是一个缺少参数的问题吗

例外的原因是什么

欢迎大家发言

完整代码:

function drawBaro() {

  document.write('<div id="mygraph2"></div>');
  //document.getElementById("infotable").deleteRow(0);

  fname="/Aurora/db/baro.rrd";
  var gtype_format={'druck':{ title: 'druck', label:'Druck', color: "#ff8080"}} 

 var ops={use_checked_DSs: true, checked_DSs: ['druck'], use_rra:true, rra:0, graph_width:"800px", use_windows: false,  graph_only:true}

  // the rrdFlotAsync object creates and handles the graph
  var vorh = 0;
  if ( typeof (f) == 'undefined' ) {
       vorh = 1;
  } else {
    vorh = 2;
  }
  //   var f=new rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops);
  if ( vorh == 1) {
     var f=new rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops,null, null, ucallb);
  } else {
     f= rrdFlotAsync("mygraph2",fname,null,{yaxis:{min:1000,max:1030}},gtype_format,ops);
  }


   }
     function ucallb () {
        alert ();
     }


     function drawBaroDia () {
        var updateInterval = 20 * 1000;
        $(this).val("" + updateInterval);

        update ();
     }
     function update () {
        var updateInterval = 20 * 1000;

        drawBaro ();
       setTimeout ( update, updateInterval );
     } 
}
函数{
文件。写(“”);
//document.getElementById(“infotable”).deleteRow(0);
fname=“/Aurora/db/baro.rrd”;
var gtype_format={'druck':{title:'druck',标签:'druck',颜色:“#ff8080”}
var ops={use_checked_DSs:true,checked_DSs:['druck'],use_rra:true,rra:0,图形宽度:“800px”,use_窗口:false,仅图形:true}
//rrdFlotAsync对象创建并处理图形
var-vorh=0;
if(typeof(f)=“未定义”){
vorh=1;
}否则{
vorh=2;
}
//var f=新的rrdFlotAsync(“mygraph2”,fname,null,{yaxis:{min:1000,max:1030}},gtype_格式,ops);
如果(vorh==1){
var f=new rrdFlotAsync(“mygraph2”,fname,null,{yaxis:{min:1000,max:1030}}},gtype_格式,ops,null,null,ucallb);
}否则{
f=rrdFlotAsync(“mygraph2”,fname,null,{yaxis:{min:1000,max:1030}},gtype_格式,ops);
}
}
函数ucallb(){
警报();
}
功能性腹泻(){
var updateInterval=20*1000;
$(this.val(“+updateInterval”);
更新();
}
函数更新(){
var updateInterval=20*1000;
德拉布罗();
setTimeout(更新,updateInterval);
} 
}