Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2020-12-09 Thread ajarmund
Hi! uplight-dev posted a nice way to catch anchor links in story.js, and ids can easily added in heading.js , so the problem I guess, as

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-19 Thread Riz
Hi Tony, Thanks for the reply. You are right, that would not have scaled well. Plus, we have a solution. Possibly something we can expand upon too! See above Sincerely, Riz On Thursday, 19 September 2019 13:33:38 UTC+5:30, TonyM wrote: > > Riz, > > I understand. This limitation is really

[twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-19 Thread Riz
Thank you Mario!!! Just saved me hours of further headbashing. So status report. I don't have enough knowledge about the codebase to add a post navigation hook. Instead, I tried adding the event in handleNavigate function after the actual navigation code. This did not work either. But

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-19 Thread TonyM
Riz, I understand. This limitation is really because we have a dynamic HTML page here, and the HTML standards did not seem to predict how we can use it in tiddlywiki. On passing thought what if select tiddlers not already in the "visible" story, could be display: none (as opposed to display:

[twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-19 Thread PMario
Hi Riz, You are right. The IDs are not available at the time the widget is called the first time. You could try an "ugly hack" with setTimeout(). You could wrap your if ( document.getElementById(this.uniqueid) != null) { code into a function eg: delayScrollIntoView()... or something similar.

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-18 Thread Rizwan Ishak
I am aware of that. However if I recall correctly, 1. it only aids navigation if the link and id exists within same tiddler or will scroll to id if it is already present in storylist. 2. Need to modify ids to fit its unconventional pattern. You see, the code given in my original post already

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-18 Thread TonyM
If it helps there is prior work on using anchors in tiddlywiki. It relies on an unconventional use of ## Regards Tont -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-18 Thread coda coder
Sorry. My bad. I didn't read the whole thing. :blush: On Wednesday, September 18, 2019 at 9:53:50 PM UTC-5, Riz wrote: > > Hey Coda, > I understand that. This is a special case scenario where usual TW stuff > like transclusion won't be used. Plus, I cannot help the existence of ids > in the

Re: [twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-18 Thread Rizwan Ishak
Hey Coda, I understand that. This is a special case scenario where usual TW stuff like transclusion won't be used. Plus, I cannot help the existence of ids in the content. As I pointed out, I am merely saving content from the web, which already has ids and id based navigation. On 19

[twdev] Re: How to navigate to ids within a tiddler? Or How to add refresh between two steps of a widget

2019-09-18 Thread coda coder
Hi Riz You should probably read my response here before you spend any more time with this: https://groups.google.com/d/msg/tiddlywikidev/C2JWmchpyaw/czI86aDvAAAJ But understand, no one will *stop* you creating ids... if they are replicated via transclusion, DOM APIs will return a node