Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  23 Sep 2010, Konstantin Olchanski, Info, Example javascript midas page 
    Reply  23 Sep 2010, Stefan Ritt, Info, Example javascript midas page js_error.png
       Reply  24 Sep 2010, Konstantin Olchanski, Info, Example javascript midas page 
          Reply  24 Sep 2010, Stefan Ritt, Info, Example javascript midas page 
Message ID: 726     Entry time: 24 Sep 2010     In reply to: 724     Reply to this: 727
Author: Konstantin Olchanski 
Topic: Info 
Subject: Example javascript midas page 
> > We had javascript ODBGet() and ODBSet() functions for some time now, permitting 
> implementation of 
> > "page-reload-free" "self-updating" web pages. I finally got around to put all 
> the javascript bits together 
> > to actually implement such a page.
> 
> Unfortunately the page has tons of JavaScript errors, probably happened during 
> copy-and-paste to elog.

The attached errors all seem to be from cut-and-paste line breaks in the long "document.writeln()" statements. 
When the page runs, there are no errors from Firefox and Safari.

This example uses "document.writeln()" because the number of PostAmp devices displayed in the table is not 
known in advance and is potentially read from ODB at page load time.

K.O.
ELOG V3.1.4-2e1708b5