HTMLsnippet Java script: call function after data is loaded
I have create a piece of java script code that is able to change the class of a table row based on the value of a field. This could be very useful to highlight a table row based on a value. Sample of the working java script I have added the script in the HMTLsnippet widget. The script runs at the event "onload" but unfortunately the data is not on that moment. How do i make this script run after the data is populated? Or will this never work at all? Thank you
You have to create a function and add the function to the onChange event of the field.
See the helptext widget that uses the addOnLoad() function.