Component Javascript Events | Community
Skip to main content
October 16, 2015
Solved

Component Javascript Events

  • October 16, 2015
  • 3 replies
  • 1070 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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). 

3 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

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). 

Adobe Employee
October 16, 2015
October 16, 2015

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.