- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
I'm completely stumped with this one.
From what I can tell, the jQuery onHandler extension can ONLY be scoped to DOM ready.
We use a utag.view() within a SPA and use this to manually update the utag.data["dom.url"] variable, and I can see this updated as I navigate through the SPA.
I was hoping to set a condition on a jQuery click handler for URL containing the fragment from the relevant page. Is my understanding correct that even if utag.data["dom.url"] is showing the correct value when I navigate there, this condition will not work because the jQuery handler only checks it on DOM ready (when it is different)?
How do I get around this? I could set a normal Javascript extension with the same condition and manually code the jQuery in there, but that seems to defeat the purpose of the jQuery handler altogether. I'd like to avoid running the jQuery extension for every page/view in the SPA if at all possible.
Any thoughts would be greatly appreciated.
Copyright All Rights Reserved © 2008-2023