- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
01-13-2017 12:08 PM
for cleanup purposes, I have different event triggers that I want to fire off a javascript function. Is the best way to create a javascript extension and store the this function as a global function, or is there a way that you can tell Telium to fire off an extension UID?
01-17-2017 02:06 PM
Hello @jeffrey_gruver. Great question. Let me see if I can find you an answer. Stay tuned...
01-17-2017 04:17 PM
@jeffrey_gruver You can define your function in a JavaScript Code Extension scoped to Pre Loader (this code is globally scoped in the window), then your event triggers can call that function. Extensions are not intended to be executed directly by UID (like Tags are), but through the convenience of extension scopes and global namespacing, you can easily create a global function using this approach.
01-18-2017 05:15 PM
Thank you Justin. That is what I was thinking, was just hoping that there was a possible different option :)
Copyright All Rights Reserved © 2008-2023