I had to finish up other elements of the project before returning to this.
Thanks for the reply. I could not get it to work, at least not for the subform. I got myClass.on undefined, or if I changed both to myClass (no on), I got addEventListener not a function. I tried passing an element, but I think el gets overwritten, doesn’t it?
I did, however, upon returning to this, solve the matter to eliminate the setInterval.
I still could not get any event to trigger by the button clicks on the subform, but when I look at the event pattern in the Joomla JavaScript, the event triggers on click and keydown of the element joomla-field-subform. Presto! So I have been able to trigger on that event for any click or keyup in the subform.
I’m still using jQuery for now. Please don’t judge me harshly ;0)
jQuery('joomla-field-subform').on('click keyup', function (){
checkGuestValidation();
updateClues();
updateFee();
alert('It works!');
});
Still have not gotten around to tackling accessing the editor…
To view this discussion on the web, visit https://groups.google.com/d/msgid/joomla-dev-general/3084bda5-f357-4848-9bae-1a1d50f6398fn%40googlegroups.com.