On Sep 5, 10:26 am, FND <[email protected]> wrote: > > Your hack at least gets the person back to the "parent" tiddler, is > > there some way of getting the person back to the location where the > > were when they clicked the link? > > Do you mean the vertical scrolling position? > That's relatively simple: > [...] > However, if you change the story contents (e.g. by closing a tiddler), > the previously recorded scroll position isn't very meaningful anymore...
Hence the problem. What I was looking for is a location within the prior tiddler regardless of story shifting (or re-arange of tiddlers). I wonder if recording: offset = vertical location of parent tiddler - vertical location of current link when moving to the child tiddler and then when closing the child tiddler perform: determine vertical position of parent tiddler and scroll to that location + offset would work. It would obviously fail if the window was resized, but should work through story column manipulations. The way I was also considering of tackling it was to add an <a name='...'></a> near the location I was coming from (include say the timestamp in the name to make sure it is unique) and adding it to the DOM. Not sure if that is possible but that would be safe against story changes as well as browser window size changes etc. since it doesn't mark a display location but a location in the text. -- rouilj --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en -~----------~----~----~----~------~----~------~--~---

