|
Back
Midas
Rome
Roody
Rootana
|
Midas DAQ System |
Not logged in |
|
|
07 Feb 2019, Stefan Ritt, Info, History panels in custom pages
|
08 Feb 2019, Thomas Lindner, Info, History panels in custom pages
|
12 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages
|
12 Sep 2019, Stefan Ritt, Info, History panels in custom pages
|
13 Sep 2019, Pintaudi Giorgio, Info, History panels in custom pages
|
|
Message ID: 1684
Entry time: 13 Sep 2019
In reply to: 1683
|
Author: |
Pintaudi Giorgio |
Topic: |
Info |
Subject: |
History panels in custom pages |
|
|
Dear Stefan,
thank you very much for the prompt reply. Your suggestions worked wonderfully. Now I can display all the plots that I want where I want.
The new JavaScript history plots are really a huge improvement over the old ones.
Thank you again
Giorgio
Stefan Ritt wrote: | 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 |
|