Re: target-page-based (instead of hyperlink-based) fragment?
Re: target-page-based (instead of hyperlink-based) fragment?
- Subject: Re: target-page-based (instead of hyperlink-based) fragment?
- From: OCsite via Webobjects-dev <email@hidden>
- Date: Sun, 16 Jan 2022 22:51:17 +0100
Jesse,
> On 16 Jan 2022, at 22:31, Jesse Tayler <email@hidden> wrote:
> ... using javascript to just store a scroll position on page exit
Strangely enough, that's what I've suggested as a probably simplest solution,
but the client said “perhaps later, for now we want the proper anchor”.
It makes some sense, for the page contents (and thus also height of its parts)
may change upon refresh — new objects to be shown, old ones disappear, etc. —,
whilst an anchor position is well-defined through the page contents.
Hmmm, perhaps I should use JS to skip to the appropriate anchor upon a
page-loaded event... might prove easier than somehow trying to stick the
fragment to the URL...
Thanks and all the best,
OC
>> On Jan 16, 2022, at 3:53 PM, OCsite via Webobjects-dev
>> <email@hidden <mailto:email@hidden>>
>> wrote:
>>
>> Hi there,
>>
>> my client wants me to ensure that a page, when accessed/refreshed in any
>> way, automatically scrolls to a specific place (which depends on previous
>> usage of the thing).
>>
>> Is there some place/hook in WebObjects which would allow me to automatically
>> add a fragment (whose value is set up e.g., as
>> component.currentFragmentIdentifier) to any URL which goes into that page,
>> regardless the URL source?
>>
>> Adding manually the fragment to all hyperlinks and forms which happen to
>> lead to the particular page is conceptually possible, but lots of legwork I
>> could do without, if there's another way to do that.
>>
>> Thanks a lot,
>> OC
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden
>> <mailto:email@hidden>)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden