How to reload the one component after click on the other component in the same page? AEM6.3 | Community
Skip to main content
Level 5
Jul 8, 2019 9:05 AM UTC
Solved

How to reload the one component after click on the other component in the same page? AEM6.3

Hi,

I created the page with emultiple components, my requirement is load the one component after click (some button) on other component in the same page.

Thanks in Advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Tuhin_Ghosh
Tuhin_GhoshAccepted solution
Level 8
Jul 18, 2019 1:26 AM UTC

You could use JS show hide function on the div of second component which would be managed/called by the button click of first component as rightly mentioned by Arun.

How To Toggle Between Hiding And Showing an Element

Thanks

Tuhin

4 replies

aravindSAuthor
Level 5
Jul 22, 2019 2:21 PM UTC

That's for our case we are using like that only, but At first time page loaded only all the components are loaded.. But i need to show the component after the clicking of the second component button (it should pass data to 3rd component).

Thanks..

Translate
Tuhin_Ghosh
Tuhin_GhoshAccepted solution
Level 8
Jul 18, 2019 1:26 AM UTC

You could use JS show hide function on the div of second component which would be managed/called by the button click of first component as rightly mentioned by Arun.

How To Toggle Between Hiding And Showing an Element

Thanks

Tuhin

Translate
arunpatidar
New Participant
Jul 17, 2019 11:52 PM UTC

I don't think, that is a good practice.

But you can load both components and hide the second one and show when the button is clicked.

It can be done with a simple js code.

Translate
Arun Patidar
Jul 17, 2019 8:07 PM UTC

Components are supposed to be loaded in Editable Templates or on pages where a policy has been set allowing a component to be dropped onto the page.

Translate