Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  14 Oct 2022, Lars Martin, Suggestion, Allow onchange to refer to arbitrary js function 
    Reply  14 Oct 2022, Ben Smith, Info, Allow onchange to refer to arbitrary js function 
       Reply  22 Oct 2022, Lars Martin, Info, Allow onchange to refer to arbitrary js function 
          Reply  22 Oct 2022, Lars Martin, Info, Allow onchange to refer to arbitrary js function 
Message ID: 2439     Entry time: 14 Oct 2022     In reply to: 2438     Reply to this: 2440
Author: Ben Smith 
Topic: Info 
Subject: Allow onchange to refer to arbitrary js function 
> I would like to use a function defined in the <script> block of my custom page as an onchange callback.
>
> Is this a possibility?

Yes, this is already possible. An example was shown in the "modb" section of the custom page documentation, but not in the "Changing properties of controls dynamically" section. I've updated the wiki with an example.

https://daq00.triumf.ca/MidasWiki/index.php/Custom_Page#Changing_properties_of_controls_dynamically
ELOG V3.1.4-2e1708b5