Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM Personalization with contexthub

Avatar

Avatar
Level 1
mohitg4140898
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
mohitg4140898
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
mohitg4140898
Level 1

16-12-2019

I have created one carousel component which is working fine when targeting is not applied but after applying targeting, its javascript is not loading or working fine. carousel's slider is not working.

 

Can anyone suggest me something?

AEM contexthub javascript Personalization

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
Level 3
Dipti_Chauhan
Level 3

Likes

13 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 3
Dipti_Chauhan
Level 3

Likes

13 likes

Total Posts

32 posts

Correct Reply

9 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
Dipti_Chauhan
Level 3

17-12-2019

Hi,

   You need to again initialize you JS on context Hub Teaser loaded event.

e.g

window.ContextHub.eventing.on(window.ContextHub.Constants.EVENT_TEASER_LOADED, function () {

//INITIALIZE HERE

}

 

Thanks

Dipti Chauhan

Answers (1)

Answers (1)

Avatar

Avatar
Boost 1
Level 1
sukohli
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
sukohli
Level 1

Like

1 like

Total Posts

5 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
sukohli
Level 1

17-12-2019

* Do you see any Console errors or 4xx/5xx status requests in Network tab in Developers Tool?

* Did you add ContextHub to the Page component as follows?:

https://docs.adobe.com/content/help/en/experience-manager-learn/sites/personalization/context-hub-te...

* Could you please confirm whether you setup ContextHub for Personalization as per: https://docs.adobe.com/content/help/en/experience-manager-learn/sites/personalization/context-hub-te... ?