Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  18 Apr 2018, Frederik Wauters, Forum, new midas custom features and javascript 
    Reply  18 Apr 2018, Stefan Ritt, Forum, new midas custom features and javascript 
       Reply  19 Apr 2018, Frederik Wauters, Forum, new midas custom features and javascript 
          Reply  20 Apr 2018, Frederik Wauters, Forum, new midas custom features and javascript snapshot1.pngsnapshot2.png
Message ID: 1363     Entry time: 18 Apr 2018     In reply to: 1362     Reply to this: 1365
Author: Stefan Ritt 
Topic: Forum 
Subject: new midas custom features and javascript 
The function mhttpd_init() scans the custom page and installs handlers etc. for each modbxxx 
element. If you create an modbvalue dynamically in your code, this is probably done after you 
called mhttpd_init(), so the function has no chance to modify the dynamically created element.

To fix that, I separated mhttpd_init() into the old init function which installs the header and sidebar, 
and a function mhttpd_scan() which scans the custom page and processes all modbxxx elements. 
Next, I tapped the error you reported, and added an automatic call to mhttp_scan() in case that 
happens. I tried it on a test page and it worked for me. Please give it a try (commit 090394e8).

Stefan
ELOG V3.1.4-2e1708b5