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

Use of external Libraries in Adobe Target

ajur
Level 2
Level 2

Hi guys,

I have a page which uses the Javascript Slick functionality (slick - the last carousel you'll ever need). The page uses this functionality to show and scroll through slides.

Now I want to 'target' the stage with Adobe Target. For a special audience there should be other slides visible. I replace the initial stage code with the new one. But now I have to reinitialize the slick functionality.

Actually I have to call $('.myStage').slick(); but the slick-functionality is not available within the at.js script. So Adobe Target shows an error "Failed Action" within the console.

Is there any possibility to introduce the slick functionality for Target?

The other idea is to trigger an event which is received by the page javascript code. But this is the last option, I would choose, because it's hard for me to have impact to the page code because the page is developed by another company.

Thanks for your help!

Regards,

Andrea

1 Reply
ajur
Level 2
Level 2

Hi everybody,

I solved the problem. Obviously it was a timing problem. I tried to initialize the stage, although the slick library weren't loaded yet. So I catched the domcontentloaded event and then I initialized the stage.

Regards,

Andrea