Highlighted

Use of external Libraries in Adobe Target

ajur

24-07-2019

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

Replies

Highlighted

ajur

25-07-2019

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