Skip to content

Navigate to tiddler in click handler #7662

Answered by andrewgoz
andrewgoz asked this question in Q&A
Discussion options

You must be logged in to vote

I have solved my original question by creating a Story object using new $tw.Story() and passing that (as part of a bound object) to a function that can be called from the click handler. That function calls story.navigateTiddler() using the click event target property to search the DOM for the "from" tiddler.

Regarding the eval() issue, that has been replaced with Function('"use strict";return(text)')() which appears to be the best of the bad options. I understand the issues with eval() and eval()-like code, but given how ApexCharts works by using JS callbacks to implement a lot of important functionality, replacing all the required callbacks with handlers flexible enough to provide replac…

Replies: 10 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pmario
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by andrewgoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants