FACT++  1.0
function refresh_graphics ( )

Definition at line 275 of file index.js.

References process_eventdata(), and var().

Referenced by onload().

276 {
277  var xmlHttp = null;
278 
279  try { xmlHttp = new XMLHttpRequest(); }
280  catch(e)
281  {
282  try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
283  catch(e)
284  {
285  try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
286  catch(e)
287  {
288  alert("Your browser doesn't support dynamic reload.");
289  return;
290  }
291  }
292  }
293 
294  xmlHttp.open('POST', 'fadcontrol-eventdata.bin', true);
295 
296  xmlHttp.onload =
297  function ()
298  {
299  if (xmlHttp.readyState == 4)
300  {
301  if (xmlHttp.status!=200)
302  {
303  alert("HTTP request error: "+xmlHttp.statusText+" ["+xmlHttp.status+"]");
304  setTimeout("refresh_text()", 10000);
305  //****** invalidate ******
306  return;
307  }
308 
309  process_eventdata(xmlHttp.responseText);
310  setTimeout("refresh_graphics()", 5000)
311  }
312  };
313 
314  xmlHttp.send(null);
315 }
po::typed_value< T > * var(T *ptr=0)
function process_eventdata(result)
Definition: index.js:392

+ Here is the call graph for this function:

+ Here is the caller graph for this function: