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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

SIdekick load event

Avatar

Level 4

We are trying to use jQuery functions to adjust the DOM of the sidekick.  Document Ready is far to early so what event should we be using to trigger our JS?

------

BTW:  The forum is again unusably slow (15 sec to open the page completely!!!)  When will this be resolved?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Not sure of your use case try overlaying [1] and modify init.jsp to add a callback method to CQ.WCM.launchSidekick. launchSidekick takes a third parameter callback function to call after sidekick is launched

[1]  /libs/wcm/core/components/init

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Not sure of your use case try overlaying [1] and modify init.jsp to add a callback method to CQ.WCM.launchSidekick. launchSidekick takes a third parameter callback function to call after sidekick is launched

[1]  /libs/wcm/core/components/init

Avatar

Level 4

We are adding a clientlib with the right category that overlays some CSS to provide a more modern interface (colors, tab styling, icons, etc).  I'd like to throw some JS in the clientlib to inject some content and a couple of new items.  This should be pretty basic.