- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
Is there a way to run scripts in a custom Tealium tool that reference the extension's window object, rather than that of the open page? I'd like to be able to append children to some nodes in the extension's window, but can't figure out how to / if I can reference it. Thanks!
All the best,
01-24-2020 12:49 AM - edited 01-24-2020 12:55 AM
Just updating the reply. All communication from the page to the Tool window happens via an Iframe postMessage, so all data has to be passed via the message object from the Tools corresponding js file. Simply read what you need from window in there, and pass it to the Tool via the provided send method.
01-27-2020 06:12 AM
Hi @kevin_faurholt -
Thank you for the reply! Much appreciated. Given this setup, is there any way to use the message object to:
For example, in my message object the script retrieves an object from the page's window, manipulates it, then sends it to the popup. Given the size of this object, I'd like to add some fancy twirl downs for easier navigation, but that would require having my own script running in the popup's sandbox or the ability to register custom helpers.
Let me know if I'm misunderstanding the mechanics or missed something in the docs. Thanks again!
01-30-2020 01:47 AM
01-30-2020 01:52 AM
02-03-2020 05:01 AM
@kevin_faurholt thank you so much for the thorough reply. Some of those tidbits would be great for the docs. Much appreciated!
02-03-2020 05:33 AM
Copyright All Rights Reserved © 2008-2023