avi.bryant at gmail.com
Sun May 1 11:45:34 MEST 2005
On 5/1/05, Lukas Renggli <renggli at iam.unibe.ch> wrote:
> Okay, what about this idea? Use a customized renderer that uses a
> dynamic variable (subclass of WADynamicVariable) to determine what
> anchor has to be appended and that will not change anything if this
> value is nil.
Why not add just an instance variable to the rendering context?
Another interesting approach here that I recently discovered is to set
<script>document.location.hash = "anchorname"</script>
This would let us have a render method that was simply something like
#jumpToHere that would generate a new unique named anchor and the
script to force the browser to it.
However, it may be awkward to know at render time what part of the
page to jump to (it usually depends more on what the most recent user
action was than on the current static state, so you have to find some
way to carry that information over from the callback phase).
Anyway, this is certainly an interesting general problem and I'd like
to see a good standard solution for it in Seaside.
More information about the SmallWiki