[Seaside] Jumping to named Anchors

Ramon Leon ramon.leon at allresnet.com
Thu Mar 12 16:30:02 UTC 2009

On Thu, Mar 12, 2009 at 9:26 AM, Sebastian Nozzi <sebnozzi at googlemail.com>wrote:

> Hi People,
> I'm trying to jump to named-anchors (after processing a request) like this:
> 1) Generating the anchor
> html anchor name: someId.
> 2) Generating another link with a callback:
> html callback:[...]; fragment: someId; with:[...].
> Unfortunately when clicking on the second link, after processing the
> request, the anchor-name gets lost (there is a redirect in-between
> right?).
> I know I should re-enter in inside of updateUrl:, but how do I access
> the named #anchor in the original request?
> And: why doesn't it get passed automatically?
> Thanks in advance!
> Sebastian

Try this instead.  In your callback method, as the last line, say

self session jumpToAnchor: #anchorName

I believe that's what you're looking for.

Ramon Leon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20090312/30263ab0/attachment.htm

More information about the seaside mailing list