how VEC changes are applied by target | Community
Skip to main content
June 4, 2023
Solved

how VEC changes are applied by target

  • June 4, 2023
  • 2 replies
  • 1206 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nnakirikanti

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/functions-overview/targetglobalsettings.html?lang=en#selectorspollingtimeout

 

Let me know if you need more details.

2 replies

nnakirikanti
Community Advisor
nnakirikantiCommunity AdvisorAccepted solution
Community Advisor
June 5, 2023

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/functions-overview/targetglobalsettings.html?lang=en#selectorspollingtimeout

 

Let me know if you need more details.

PratheepArunRaj
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 6, 2023

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

Thank You, Pratheep Arun Raj B (Arun) | Xerago | Terryn Winter Analytics