Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  07 Feb 2019, Stefan Ritt, Info, History panels in custom pages Screenshot_2019-02-07_at_10.39.44_.pngtriggerrate.txt
    Reply  08 Feb 2019, Thomas Lindner, Info, History panels in custom pages 
       Reply  12 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages Screenshot_from_2019-09-12_16-56-39.png
          Reply  12 Sep 2019, Stefan Ritt, Info, History panels in custom pages 
             Reply  13 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages 
Message ID: 1683     Entry time: 12 Sep 2019     In reply to: 1682     Reply to this: 1684
Author: Stefan Ritt 
Topic: Info 
Subject: History panels in custom pages 
Indeed there was a bug in some JavaScript code, which I fixed here: https://bitbucket.org/tmidas/midas/commits/d2b1a783240e252820c622001e15c09c5d7798c0

Note that your code will bring you the "old style" history panels (with GIF images). If you want the new style (interactive canvas panels), you need the following:

1) Add

<script src="mhistory.js"></Script>

to the top of your custom page

2) Add "mhistory_init();" to the "onload" function of your page, like

<body class="mcss" onloas="mhttpd_init('Example');mhistory_init();">

3) Change the class of the panel from "mhistory" to "mjhistory", like

<div class="mjshistory" data-group=...>


Best regards,
Stefan
ELOG V3.1.4-2e1708b5