- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Hi,
Can you please help me in debugging a javacsript extension with a scope to a BlueKai tag where I'm adding an event listener to a button and I'm populating some variables in it.
The goal is to send a call to BlueKai having the variables I've populated in the server call.
Unfortunately the code I've added to the listener runs after the call happens to BlueKai.
Can you please let me know how can I add my code before the call happens?
If you need other information please let me know.
Thanks,
Csaba
If I may ask, are you able to provide the code in question so we can take a closer look?
Thanks!
-Dan
@csaba_ozsvath An extension to add an event listener should most likely be scoped to DOM Ready or Pre Loader. Learn more about Extensions scopes and execution order.
You can use the "Run Once" options in the JavaScript Code extension if you need more granular control of the timing.
Hi guys,
Thanks for all your answers however we've managed to sort the issue by using another approach so basically we've removed the event listener and as there was already a listener on the object in scope we've used that to inject the required code.
Thanks,
Csaba
@csaba_ozsvath Great job figuring this out on your own. And MUCH APPRECIATED letting us know how you solved it!
Copyright All Rights Reserved © 2008-2023