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

$(document).on("foundation-contentloaded") dialog event is not working as expected in AEMaaCS

Avatar

Avatar
Boost 3
Level 1
ibishika
Level 1

Likes

3 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Boost 3
Level 1
ibishika
Level 1

Likes

3 likes

Total Posts

2 posts

Correct Reply

1 solution
Top badges earned
Boost 3
Validate 1
Boost 1
Affirm 1
View profile
ibishika
Level 1

27-04-2021

I have used the below code to detect a dialog load event for previous versions of AEM (I think AEM 6.3). Currently I am using AEMaaCS and when I use the same, I notice that the control is never going inside the below code:
$(document).on("foundation-contentloaded", function (e) {
});

Please share if there is any solution or any other way of doing this.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile

Avatar
Affirm 100
Level 10
asutosh_jena
Level 10

Likes

373 likes

Total Posts

480 posts

Correct Reply

133 solutions
Top badges earned
Affirm 100
Ignite 1
Establish
Give Back 50
Give Back 5
View profile
asutosh_jena
Level 10

27-04-2021

Hi @ibishika 

 

Please use with below code:

 

(function ($, $document) {
$document.on("dialog-ready", function () {
// code will go here
console.log("dialog ready now!!!");
});
})($, $(document));

This will be executed when the dialog is loaded.

 

Thanks! 

Answers (0)