I have a page with a number of text components. When a user updates content for one of these text components, I need to be able to call a Javascript function. Is there a way to register custom Javascript callbacks for certain component events *without* creating any new custom components?
Solved! Go to Solution.
Views
Replies
Total Likes
Most of the time - people that code callback methods in JavaScript do so as part of programming a custom AEM component - or overlaying an existing on (which still is creating a new component).
Views
Replies
Total Likes
Most of the time - people that code callback methods in JavaScript do so as part of programming a custom AEM component - or overlaying an existing on (which still is creating a new component).
Views
Replies
Total Likes
Have you looked at cq:listeners? https://docs.adobe.com/docs/en/aem/6-1/develop/components.html#cq:listeners
Views
Replies
Total Likes
I have, but what from I can tell, it must be defined as part of the component (which I cannot change). I have a template which has some Javascript that needs to be called anytime a component on the page is updated. I'm trying to see if there are some Javascript events that I can perhaps listen to in my template in order to run my custom callback.
Views
Replies
Total Likes
Views
Likes
Replies