Expand my Community achievements bar.

SOLVED

how VEC changes are applied by target

Avatar

Level 1

Hi there, 

In our webpage, one of the component was built as a nested angular component. Due to which we are unable to reach that via DOM (just like an iframe) so when we type in console document.querySelector('.sel') we get null
However when we use VEC to change the text of that element. it seems to work correctly.

Does anyone know what sort of code, Visual composer (VEC) generates to apply the changes?

Thanks

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @crodev2 Adobe Target polls for availability of DOM Element for a duration and then timeout with error logged onto console.

Default polling timeout is 5 seconds.

https://experienceleague.adobe.com/docs/target-dev/developer/client-side/at-js-implementation/functi...

 

Let me know if you need more details.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @crodev2 Adobe Target polls for availability of DOM Element for a duration and then timeout with error logged onto console.

Default polling timeout is 5 seconds.

https://experienceleague.adobe.com/docs/target-dev/developer/client-side/at-js-implementation/functi...

 

Let me know if you need more details.

Avatar

Community Advisor

Dear @crodev2 ,

Just check the 'offer' delivered onto the page and see how the codes are being injected onto the page as well as the iframe. Try to replicate their mechanism and see if it works for you.

Thank You, Pratheep Arun Raj B (Arun) | NextRow DigitalTerryn Winter Analytics