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: 1366     Entry time: 20 Apr 2018     In reply to: 1365
Author: Frederik Wauters 
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
> 
> Also works for me
> 
>  thanks


This is more about aesthetic, but when I use the modbvalue div, it first only shows the odb value. However, 
after editing, the odb index gets added to the field, which is kinda ugly -> see attachments
Attachment 1: snapshot1.png  1 kB  Uploaded 20 Apr 2018  | Show | Show all
Attachment 2: snapshot2.png  2 kB  Uploaded 20 Apr 2018  | Show | Show all
ELOG V3.1.4-2e1708b5